framework/validators/CCaptchaValidator.php
protected function getCaptchaAction()
	{
		if(($captcha=Yii::app()->getController()->createAction($this->captchaAction))===null)
		{
			if(strpos($this->captchaAction,'/')!==false) // contains controller or module
			{
				if(($ca=Yii::app()->createController($this->captchaAction))!==null)
				{
					list($controller,$actionID)=$ca;
					$captcha=$controller->createAction($actionID);
				}
			}
			if($captcha===null)
				throw new CException(Yii::t('yii','CCaptchaValidator.action "{id}" is invalid. Unable to find such an action in the current controller.',
						array('{id}'=>$this->captchaAction)));
		}
		return $captcha;
	}
protected function getCaptchaAction()
	{
		if(($captcha=Yii::app()->getController()->createAction($this->captchaAction))===null)
		{
			if(strpos($this->captchaAction,'/')!==false) // contains controller or module
			{
				if(($ca=Yii::app()->createController($this->captchaAction))!==null)
				{
					list($controller,$actionID)=$ca;
					$captcha=$controller->createAction($actionID);
				}
			}
			if($captcha===null)
				throw new CException(Yii::t('yii','CCaptchaValidator.action "{id}" is invalid. Unable to find such an action in the current controller.',
						array('{id}'=>$this->captchaAction)));
		}
		return $captcha;
	}
protected function getCaptchaAction ( ) { if ( ( $ captcha = Yii :: app ( ) -> getController ( ) -> createAction ( $ this -> captchaAction ) ) === null ) { if ( strpos ( $ this -> captchaAction , '/' ) !== false ) // contains controller or module { if ( ( $ ca = Yii :: app ( ) -> createController ( $ this -> captchaAction ) ) !== null ) { list ( $ controller , $ actionID ) = $ ca ; $ captcha = $ controller -> createAction ( $ actionID ) ; } } if ( $ captcha === null ) throw new CException ( Yii :: t ( 'yii' , 'CCaptchaValidator.action "{id}" is invalid. Unable to find such an action in the current controller.' , array ( '{id}' => $ this -> captchaAction ) ) ) ; } return $ captcha ; }
Returns the CAPTCHA action object.
@throws CException if {@link action} is invalid
@return CCaptchaAction the action object
@since 1.1.7
Returns the CAPTCHA action object .