|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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, array $dimension_groups=[]) | |
| htmlMetadata () | |
| openGraphMetadata () | |
| languageTag (string $language_tag) | |
| text () | |
| emailAddress (string $address) | |
| description () | |
Private Attributes | |
| Color Factory | $colorfactory = null |
| Dimension Factory | $dimensionfactory = null |
| Meta Html Factory | $html_metadata_factory = null |
| Meta Html OpenGraph Factory | $open_graph_metadata_factory = null |
| Text Factory | $text_factory = null |
| Description Factory | $description_factory = null |
Builds data types.
Definition at line 35 of file Factory.php.
| ILIAS\Data\Factory::alphanumeric | ( | $value | ) |
| mixed | $value |
Definition at line 138 of file Factory.php.
| ILIAS\Data\Factory::clientId | ( | string | $clientId | ) |
| ILIAS\Data\Factory::clock | ( | ) |
Definition at line 181 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 72 of file Factory.php.
| ILIAS\Data\Factory::dataset | ( | array | $dimensions, |
| array | $dimension_groups = [] |
||
| ) |
| array<string,Dimension |
Dimension> $dimensions Dimensions with their names as keys
| array<string,Dimension |
DimensionGroup> $dimension_groups
Definition at line 198 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 97 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 148 of file Factory.php.
| ILIAS\Data\Factory::description | ( | ) |
Definition at line 245 of file Factory.php.
References ILIAS\Data\Factory\$description_factory.
| ILIAS\Data\Factory::dimension | ( | ) |
Definition at line 186 of file Factory.php.
References ILIAS\Data\Factory\$dimensionfactory.
| ILIAS\Data\Factory::emailAddress | ( | string | $address | ) |
Definition at line 240 of file Factory.php.
| ILIAS\Data\Factory::error | ( | $e | ) |
Get an error result.
| string | \Exception | $e |
Definition at line 61 of file Factory.php.
References Vendor\Package\$e.
| ILIAS\Data\Factory::htmlMetadata | ( | ) |
Definition at line 203 of file Factory.php.
References ILIAS\Data\Factory\$html_metadata_factory.
| ILIAS\Data\Factory::languageTag | ( | string | $language_tag | ) |
Definition at line 221 of file Factory.php.
References ILIAS\Data\LanguageTag\fromString().
Here is the call graph for this function:| ILIAS\Data\Factory::link | ( | string | $label, |
| URI | $url | ||
| ) |
Definition at line 176 of file Factory.php.
References $url.
| ILIAS\Data\Factory::objId | ( | int | $obj_id | ) |
Definition at line 130 of file Factory.php.
| ILIAS\Data\Factory::ok | ( | $value | ) |
Get an ok result.
| mixed | $value |
Definition at line 50 of file Factory.php.
| ILIAS\Data\Factory::openGraphMetadata | ( | ) |
Definition at line 212 of file Factory.php.
References ILIAS\Data\Factory\$open_graph_metadata_factory.
| ILIAS\Data\Factory::order | ( | string | $subject, |
| string | $direction | ||
| ) |
| string | $direction | Order::ASC|Order::DESC |
Definition at line 162 of file Factory.php.
| ILIAS\Data\Factory::password | ( | string | $pass | ) |
Definition at line 115 of file Factory.php.
References ILIAS\User\Settings\Password.
| ILIAS\Data\Factory::positiveInteger | ( | int | $value | ) |
Definition at line 143 of file Factory.php.
| ILIAS\Data\Factory::range | ( | int | $start, |
| int | $length | ||
| ) |
Definition at line 154 of file Factory.php.
| ILIAS\Data\Factory::refId | ( | int | $ref_id | ) |
| ILIAS\Data\Factory::text | ( | ) |
Definition at line 226 of file Factory.php.
References ILIAS\Data\Factory\$text_factory.
| 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 85 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 171 of file Factory.php.
References $version.
Definition at line 38 of file Factory.php.
|
private |
Definition at line 43 of file Factory.php.
Referenced by ILIAS\Data\Factory\description().
|
private |
Definition at line 39 of file Factory.php.
Referenced by ILIAS\Data\Factory\dimension().
Definition at line 40 of file Factory.php.
Referenced by ILIAS\Data\Factory\htmlMetadata().
Definition at line 41 of file Factory.php.
Referenced by ILIAS\Data\Factory\openGraphMetadata().
|
private |
Definition at line 42 of file Factory.php.
Referenced by ILIAS\Data\Factory\text().