ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Builds data types. More...
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 ($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 ($pass) | |
Get a password. More... | |
clientId (string $clientId) | |
refId (int $ref_id) | |
alphanumeric ($value) | |
positiveInteger (int $value) | |
dateFormat () | |
range (int $start, int $length) | |
order (string $subject, $direction) | |
Private Attributes | |
$colorfactory | |
cache for color factory. More... | |
Builds data types.
Definition at line 19 of file Factory.php.
ILIAS\Data\Factory::alphanumeric | ( | $value | ) |
ILIAS\Data\Factory::clientId | ( | string | $clientId | ) |
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::dataSize | ( | $size, | |
string | $unit = null |
||
) |
Represents the size of some data.
string | int | $size | string might be a string like "126 MB" |
Definition at line 83 of file Factory.php.
References ILIAS\Data\DataSize\$abbreviations, and $size.
ILIAS\Data\Factory::dateFormat | ( | ) |
Definition at line 152 of file Factory.php.
References $builder.
Referenced by ilStudyProgrammeDeadlineSettings\toFormInput(), and ilStudyProgrammeValidityOfAchievedQualificationSettings\toFormInput().
ILIAS\Data\Factory::error | ( | $e | ) |
Get an error result.
string | \Exception | $error |
Definition at line 43 of file Factory.php.
References Vendor\Package\$e.
ILIAS\Data\Factory::ok | ( | $value | ) |
ILIAS\Data\Factory::order | ( | string | $subject, |
$direction | |||
) |
mixed | $direction | Order::ASC|Order::DESC |
Definition at line 171 of file Factory.php.
ILIAS\Data\Factory::password | ( | $pass | ) |
Get a password.
string |
Definition at line 107 of file Factory.php.
References $pass.
ILIAS\Data\Factory::positiveInteger | ( | int | $value | ) |
ILIAS\Data\Factory::range | ( | int | $start, |
int | $length | ||
) |
ILIAS\Data\Factory::refId | ( | int | $ref_id | ) |
ILIAS\Data\Factory::uri | ( | $uri_string | ) |
Object representing an uri valid according to RFC 3986 with restrictions imposed on valid characters and obliagtory parts.
string | $uri_string |
Definition at line 71 of file Factory.php.
|
private |
cache for color factory.
Definition at line 24 of file Factory.php.