Table of Contents
Properties
-
$actions
: mixed
-
$actionsTemplate
: mixed
-
$name
: mixed
-
$namespace
: mixed
-
$settings
: mixed
-
$template
: mixed
Methods
-
__construct()
: mixed
-
produce()
: mixed
-
breakParts()
: mixed
-
getNamespaceHeader()
: mixed
-
getNamespaces()
: mixed
-
getNamespaceString()
: mixed
-
getShortClassName()
: mixed
-
produceActions()
: mixed
-
removeSuffix()
: mixed
$actions
protected
mixed
$actions
= ''
$actionsTemplate
protected
mixed
$actionsTemplate
= <<<EOF
/**
* @var \\{{actorClass}};
*/
protected \${{actor}};
public function __construct(\\{{actorClass}} \$I)
{
\$this->{{actor}} = \$I;
}
EOF
$name
protected
mixed
$name
$namespace
protected
mixed
$namespace
$settings
protected
mixed
$settings
$template
protected
mixed
$template
= <<<EOF
<?php
namespace {{namespace}};
class {{class}}
{
// include url of current page
public static \$URL = '';
/**
* Declare UI map for this page here. CSS or XPath allowed.
* public static \$usernameField = '#username';
* public static \$formSubmitButton = "#mainForm input[type=submit]";
*/
/**
* Basic route example for your current URL
* You can append any additional parameter to URL
* and use it in tests like: Page\\Edit::route('/123-post');
*/
public static function route(\$param)
{
return static::\$URL.\$param;
}
{{actions}}
}
EOF
__construct()
public
__construct(mixed $settings, mixed $name) : mixed
Parameters
-
$settings
: mixed
-
-
$name
: mixed
-
produce()
public
produce() : mixed
breakParts()
protected
breakParts(mixed $class) : mixed
Parameters
-
$class
: mixed
-
protected
getNamespaceHeader(mixed $class) : mixed
Parameters
-
$class
: mixed
-
getNamespaces()
protected
getNamespaces(mixed $class) : mixed
Parameters
-
$class
: mixed
-
getNamespaceString()
protected
getNamespaceString(mixed $class) : mixed
Parameters
-
$class
: mixed
-
getShortClassName()
protected
getShortClassName(mixed $class) : mixed
Parameters
-
$class
: mixed
-
produceActions()
protected
produceActions() : mixed
removeSuffix()
protected
removeSuffix(mixed $classname, mixed $suffix) : mixed
Parameters
-
$classname
: mixed
-
-
$suffix
: mixed
-