ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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) | |
openedIntegerInterval (int $minimum, int $maximum) | |
closedIntegerInterval (int $minimum, int $maximum) | |
openedFloatInterval (float $minimum, float $maximum) | |
closedFloatInterval (float $minimum, float $maximum) | |
dateFormat () | |
Private Attributes | |
$colorfactory | |
cache for color factory. More... | |
Builds data types.
Definition at line 19 of file Factory.php.
ILIAS\Data\Factory::alphanumeric | ( | $value | ) |
$value |
Definition at line 135 of file Factory.php.
ILIAS\Data\Factory::clientId | ( | string | $clientId | ) |
string | $clientId |
Definition at line 116 of file Factory.php.
ILIAS\Data\Factory::closedFloatInterval | ( | float | $minimum, |
float | $maximum | ||
) |
float | $minimum | |
float | $maximum |
Definition at line 184 of file Factory.php.
ILIAS\Data\Factory::closedIntegerInterval | ( | int | $minimum, |
int | $maximum | ||
) |
int | $minimum | |
int | $maximum |
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::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 83 of file Factory.php.
References ILIAS\Data\DataSize\$abbreviations, $size, and ILIAS\Data\Factory\dataSize().
Referenced by ILIAS\Data\Factory\dataSize().
ILIAS\Data\Factory::dateFormat | ( | ) |
Definition at line 192 of file Factory.php.
References $builder.
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 | ) |
Get an ok result.
mixed | $value |
Definition at line 32 of file Factory.php.
ILIAS\Data\Factory::openedFloatInterval | ( | float | $minimum, |
float | $maximum | ||
) |
float | $minimum | |
float | $maximum |
Definition at line 174 of file Factory.php.
ILIAS\Data\Factory::openedIntegerInterval | ( | int | $minimum, |
int | $maximum | ||
) |
int | $minimum | |
int | $maximum |
Definition at line 154 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 | ) |
int | $value |
Definition at line 144 of file Factory.php.
ILIAS\Data\Factory::refId | ( | int | $ref_id | ) |
int | $ref_id |
Definition at line 126 of file Factory.php.
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.