ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Public Member Functions | |
__construct (\ILIAS\Data\Factory $dataFactory, \ilLanguage $language) | |
to () | |
Combined validations and transformations for primitive data types that establish a baseline for further constraints and more complex transformations. More... | |
kindlyTo () | |
Combined validations and transformations for primitive data types that establish a baseline for further constraints and more complex transformations. More... | |
in () | |
Creates a factory object to create a transformation object, that can be used to execute other transformation objects in a desired order. More... | |
int () | |
Contains constraints and transformations on numbers. More... | |
string () | |
Contains constraints for string. More... | |
custom () | |
Contains constraints and transformations for custom functions. More... | |
container () | |
Contains constraints for container types (e.g. More... | |
password () | |
Contains constraints for password strings. More... | |
logical () | |
Contains constraints for logical compositions with other constraints. More... | |
null () | |
Contains constraints for null types. More... | |
numeric () | |
Contains constraints for numeric data types. More... | |
dateTime () | |
Contains transformations for DateTime. More... | |
uri () | |
Contains transformations for Data. More... | |
byTrying (array $transformations) | |
Accepts Transformations and uses first successful one. More... | |
Private Attributes | |
$dataFactory | |
$language | |
Definition at line 16 of file Factory.php.
ILIAS\Refinery\Factory::__construct | ( | \ILIAS\Data\Factory | $dataFactory, |
\ilLanguage | $language | ||
) |
\ILIAS\Data\Factory | $dataFactory | |
\ilLanguage | $language |
Definition at line 32 of file Factory.php.
References language().
ILIAS\Refinery\Factory::byTrying | ( | array | $transformations | ) |
Accepts Transformations and uses first successful one.
Transformation[] | $transformations |
Definition at line 184 of file Factory.php.
References language().
ILIAS\Refinery\Factory::container | ( | ) |
Contains constraints for container types (e.g.
arrays)
Definition at line 115 of file Factory.php.
References language().
ILIAS\Refinery\Factory::custom | ( | ) |
Contains constraints and transformations for custom functions.
Definition at line 105 of file Factory.php.
References language().
ILIAS\Refinery\Factory::dateTime | ( | ) |
ILIAS\Refinery\Factory::in | ( | ) |
Creates a factory object to create a transformation object, that can be used to execute other transformation objects in a desired order.
Definition at line 74 of file Factory.php.
ILIAS\Refinery\Factory::int | ( | ) |
Contains constraints and transformations on numbers.
Each constraint on an int will attempt to transform to int as well.
Definition at line 85 of file Factory.php.
References language().
ILIAS\Refinery\Factory::kindlyTo | ( | ) |
Combined validations and transformations for primitive data types that establish a baseline for further constraints and more complex transformations.
Other then the to
-group, the kindlyTo
transformation attempts to implement Postels Law by being reasonably liberal when interpreting data. Look into the various transformations in the group for detailed information what works exactly.
Definition at line 62 of file Factory.php.
ILIAS\Refinery\Factory::logical | ( | ) |
Contains constraints for logical compositions with other constraints.
Definition at line 135 of file Factory.php.
References language().
ILIAS\Refinery\Factory::null | ( | ) |
Contains constraints for null types.
Definition at line 145 of file Factory.php.
References language().
ILIAS\Refinery\Factory::numeric | ( | ) |
Contains constraints for numeric data types.
Definition at line 155 of file Factory.php.
References language().
ILIAS\Refinery\Factory::password | ( | ) |
Contains constraints for password strings.
Definition at line 125 of file Factory.php.
References language().
ILIAS\Refinery\Factory::string | ( | ) |
Contains constraints for string.
Definition at line 95 of file Factory.php.
References language().
ILIAS\Refinery\Factory::to | ( | ) |
Combined validations and transformations for primitive data types that establish a baseline for further constraints and more complex transformations.
Definition at line 46 of file Factory.php.
ILIAS\Refinery\Factory::uri | ( | ) |
|
private |
Definition at line 21 of file Factory.php.
|
private |
Definition at line 26 of file Factory.php.