|
ILIAS
release_8 Revision v8.24
|
Builds data types. More...
Inheritance diagram for ILIAS\Data\Factory:
Collaboration diagram for ILIAS\Data\Factory:Public Member Functions | |
| ok ($value) | |
| Get an ok result. More... | |
| error ($e) | |
| Get an error result. More... | |
| color ($value) | |
| Color is a data type representing a color in HTML. More... | |
| uri (string $uri_string) | |
| Object representing an uri valid according to RFC 3986 with restrictions imposed on valid characters and obliagtory parts. More... | |
| dataSize ($size, string $unit=null) | |
| Represents the size of some data. More... | |
| password (string $pass) | |
| clientId (string $clientId) | |
| refId (int $ref_id) | |
| objId (int $obj_id) | |
| alphanumeric ($value) | |
| positiveInteger (int $value) | |
| dateFormat () | |
| range (int $start, int $length) | |
| order (string $subject, string $direction) | |
| version (string $version) | |
| link (string $label, URI $url) | |
| clock () | |
| dimension () | |
| dataset (array $dimensions) | |
Private Attributes | |
| Color Factory | $colorfactory = null |
| cache for color factory. More... | |
| Dimension Factory | $dimensionfactory = null |
Builds data types.
Definition at line 20 of file Factory.php.
| ILIAS\Data\Factory::alphanumeric | ( | $value | ) |
| mixed | $value |
Definition at line 121 of file Factory.php.
| ILIAS\Data\Factory::clientId | ( | string | $clientId | ) |
| ILIAS\Data\Factory::clock | ( | ) |
Definition at line 164 of file Factory.php.
| ILIAS\Data\Factory::color | ( | $value | ) |
Color is a data type representing a color in HTML.
Construct a color with a hex-value or list of RGB-values.
| string | int[] | $value |
Definition at line 55 of file Factory.php.
| ILIAS\Data\Factory::dataset | ( | array | $dimensions | ) |
| array<string,Dimension |
Dimension> $dimensions Dimensions with their names as keys
Definition at line 180 of file Factory.php.
| ILIAS\Data\Factory::dataSize | ( | $size, | |
| string | $unit = null |
||
| ) |
Represents the size of some data.
| string | int | $size | string might be a string like "126 MB" |
InvalidArgumentException if first argument is int and second is not a valid unit.
InvalidArgumentException if string size can't be interpreted
Definition at line 80 of file Factory.php.
References ILIAS\Data\DataSize\$abbreviations, and ILIAS\Data\Factory\dataSize().
Referenced by ILIAS\Data\Factory\dataSize().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Data\Factory::dateFormat | ( | ) |
Definition at line 131 of file Factory.php.
Referenced by ilIndividualAssessmentUserGradingTest\testToFormInput().
Here is the caller graph for this function:| ILIAS\Data\Factory::dimension | ( | ) |
Definition at line 169 of file Factory.php.
References ILIAS\Data\Factory\$dimensionfactory.
| ILIAS\Data\Factory::error | ( | $e | ) |
Get an error result.
| string | \Exception | $e |
Definition at line 44 of file Factory.php.
References Vendor\Package\$e.
| ILIAS\Data\Factory::link | ( | string | $label, |
| URI | $url | ||
| ) |
Definition at line 159 of file Factory.php.
References $url.
| ILIAS\Data\Factory::objId | ( | int | $obj_id | ) |
Definition at line 113 of file Factory.php.
| ILIAS\Data\Factory::ok | ( | $value | ) |
Get an ok result.
| mixed | $value |
Definition at line 33 of file Factory.php.
| ILIAS\Data\Factory::order | ( | string | $subject, |
| string | $direction | ||
| ) |
| string | $direction | Order::ASC|Order::DESC |
Definition at line 145 of file Factory.php.
Referenced by ILIAS\UI\Implementation\Component\Table\Data\getOrder().
Here is the caller graph for this function:| ILIAS\Data\Factory::password | ( | string | $pass | ) |
Definition at line 98 of file Factory.php.
Referenced by PasswordContraintsTest\constraintsProvider(), and ILIAS\UI\examples\Input\Field\Password\with_contraints().
Here is the caller graph for this function:| ILIAS\Data\Factory::positiveInteger | ( | int | $value | ) |
Definition at line 126 of file Factory.php.
| ILIAS\Data\Factory::range | ( | int | $start, |
| int | $length | ||
| ) |
Definition at line 137 of file Factory.php.
| ILIAS\Data\Factory::refId | ( | int | $ref_id | ) |
| ILIAS\Data\Factory::uri | ( | string | $uri_string | ) |
Object representing an uri valid according to RFC 3986 with restrictions imposed on valid characters and obliagtory parts.
Definition at line 68 of file Factory.php.
| ILIAS\Data\Factory::version | ( | string | $version | ) |
| string | $version | in the form \d+([.]\d+([.]\d+)?)? |
InvalidArgumentException if version string does not match \d+([.]\d+([.]\d+)?)?
Definition at line 154 of file Factory.php.
References $version.
Referenced by ilPluginInfoTest\versionCompliance().
Here is the caller graph for this function:cache for color factory.
Definition at line 25 of file Factory.php.
|
private |
Definition at line 26 of file Factory.php.
Referenced by ILIAS\Data\Factory\dimension().