Method | Description | |
---|---|---|
__construct ( string $name, array $attributes = null, array $properties = null, null | string $template = null ) | ||
__toString ( ) | ||
deriveName ( $name_path ) : string | Convert array selector representation (['baz', 'foo_bar']) to English friendly representation (Bar Foo Bar). | |
getAttribute ( $name ) : null | string | If [id] is undefined at the time of request, Dora will use instance UID. | |
getNamePath ( ) : array | Parse input[name] into an array reprensentation. | |
getProperty ( string $name ) : mixed | ||
getUid ( ) | ||
getValue ( ) : mixed | ||
setProperty ( string $name, mixed $value ) : mixed | ||
toString ( ) |
Method | Description | |
---|---|---|
setAttribute ( string $name, string $value ) | Type checking ommission is intentional. PHP does not provide scalar data type hinting. Non-scallar variables will thrown an error when cast to string. Manual validation is an unnecessary overhead. | |
stringifyAttributes ( ) | Generate string representation of the input attributes. |
public static deriveName ( $name_path ) : string | ||
return | string |
public getAttribute ( $name ) : null | string | ||
return | null | string | Attribute value. |
public getNamePath ( ) : array | ||
return | array | [name="a[b][c][]"] is represented ['a', 'b', 'c']. |
public getProperty ( string $name ) : mixed | ||
$name | string | Name of the property. |
return | mixed |