[TYPO3-mvc] getX returns a boolean, isX returns null

Stephen Bungert stephen at bungert.co.uk
Sun Jul 18 15:13:22 CEST 2010


I think that must be it:


	
	/**
	 * Returns the boolean state of soldout
	 *
	 * @return bool The state of soldout
	 */
	public function isSoldout() {
		$this->getSoldout();
	}

The return is missing, I hadn't noticed sorry!

On 18.07.2010 14:51, Sebastian Kurfürst wrote:
> Hey Stephen,
>
>> I find that using '$this->getSoldout()' returns true or false (premier,
>> soldout and cancelled are all boolean values), whereas
>> '$this->isSoldout()' retuns null whatever the actual property is set to.
> Can you post the code of isSoldout()? Maybe the return statement is
> missing there; might be an error in the Kickstarter code generation.
>
> Greets,
> Sebastian



More information about the TYPO3-project-typo3v4mvc mailing list