codeception\BasePage __construct()

__construct() public method Constructor. public void __construct ( $I )$I \Codeception\Actor The testing guy object

codeception\BasePage openBy()

openBy() public static method Creates a page instance and sets the test guy to use $url. public static static openBy ( $I, $params = [] )$I \Codeception\Actor The test guy instance $params array The GET parameters to be used to generate $url return static The page instance

codeception\BasePage getUrl()

getUrl() public method Returns the URL to this page. The URL will be returned by calling the URL manager of the application with $route and the provided parameters. public string getUrl ( $params = [] )$params array The GET parameters for creating the URL return string The URL to this page throws yii\base\InvalidConfigException if $route is not set or invalid

codeception\BasePage $url

$url public read-only property The URL to this page public string getUrl ( $params = [] )

codeception\BasePage $route

$route public property The route (controller ID and action ID, e.g. site/about) to this page. Use array to represent a route with GET parameters. The first element of the array represents the route and the rest of the name-value pairs are treated as GET parameters, e.g. array('site/page', 'name' => 'about'). public string|array $route = null

codeception\BasePage $actor

$actor protected property The testing guy object protected \Codeception\Actor $actor = null

captcha\CaptchaValidator validateValue()

validateValue() protected method Validates a value. A validator class can implement this method to support data validation out of the context of a data model. protected array|null validateValue ( $value )$value mixed The data value to be validated. return array|null The error message and the parameters to be inserted into the error message. Null should be returned if the data is valid. throws yii\base\NotSupportedException if the validator does not supporting data validation withou

captcha\CaptchaValidator init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

captcha\CaptchaValidator createCaptchaAction()

createCaptchaAction() public method Creates the CAPTCHA action object from the route specified by $captchaAction. public yii\captcha\CaptchaAction createCaptchaAction ( )return yii\captcha\CaptchaAction The action object throws yii\base\InvalidConfigException

captcha\CaptchaValidator clientValidateAttribute()

clientValidateAttribute() public method Returns the JavaScript needed for performing client-side validation. You may override this method to return the JavaScript validation code if the validator can support client-side validation. The following JavaScript variables are predefined and can be used in the validation code: attribute: an object describing the the attribute being validated. value: the value being validated. messages: an array used to hold the validation error messages for the