Detailed Description
Instances of AttributeDescription describe attributes of PersistentObjects.
Definition at line 18 of file AttributeDescription.php.
Inheritance diagram for AttributeDescription:Public Member Functions | |
| __construct ($name, $type, array $tags, $defaultValue, $validateType, $validateDescription, $isEditable, $inputType, $displayType) | |
| hasTag ($tag) | |
| matchTags (array $tags=array(), $matchMode='all') | |
| getPropertyNames () | |
| getName () | |
| getType () | |
| getTags () | |
| getDefaultValue () | |
| getValidateType () | |
| getValidateDescription () | |
| getIsEditable () | |
| getInputType () | |
| getDisplayType () | |
Protected Attributes | |
| $name = '' | |
| $type = 'String' | |
| $tags = array() | |
| $defaultValue = null | |
| $validateType = '' | |
| $validateDescription = '' | |
| $isEditable = true | |
| $inputType = 'text' | |
| $displayType = 'text' | |
Constructor & Destructor Documentation
| __construct | ( | $name, | |
| $type, | |||
| array | $tags, | ||
| $defaultValue, | |||
| $validateType, | |||
| $validateDescription, | |||
| $isEditable, | |||
| $inputType, | |||
| $displayType | |||
| ) |
Constructor.
- Parameters
-
$name The attribute name $type The attribute type $tags An array of application specific tags that this attribute is tagged with $defaultValue The default value (will be set when creating a blank object, see PersistenceMapper::create()) $validateType A validation type for the value $validateDescription A description for the validation type $isEditable Boolean whether the attribute should be editable, see Control::render() $inputType The input type for the value, see Control::render() $displayType The display type for the value
Definition at line 42 of file AttributeDescription.php.
Member Function Documentation
| hasTag | ( | $tag | ) |
Check if this attribute has the given application specific tag.
- Parameters
-
$tag Tag that the attribute should have
- Returns
- Boolean
Definition at line 61 of file AttributeDescription.php.
| matchTags | ( | array | $tags = array(), |
$matchMode = 'all' |
|||
| ) |
Check if this attribute is tagged with the given application specific tags.
- Parameters
-
$tags An array of tags that the attribute should match. Empty array results in true the given matchMode (default: empty array) $matchMode One of 'all', 'none', 'any', defines how the attribute's tags should match the given tags (default: 'all')
- Returns
- True if the attribute tags satisfy the match mode, false else
Definition at line 71 of file AttributeDescription.php.
| getPropertyNames | ( | ) |
Return an array of property names defined in this attribute description.
- Returns
- An array of names
Definition at line 96 of file AttributeDescription.php.
| getName | ( | ) |
| getType | ( | ) |
| getTags | ( | ) |
Get the application specific tags that this attribute is tagged with.
- Returns
- Array of String
Definition at line 121 of file AttributeDescription.php.
| getDefaultValue | ( | ) |
| getValidateType | ( | ) |
Get the validation type for the value.
- Returns
- String
Definition at line 137 of file AttributeDescription.php.
| getValidateDescription | ( | ) |
Get the description for the validation type.
- Returns
- String
Definition at line 145 of file AttributeDescription.php.
| getIsEditable | ( | ) |
Check whether the attribute should be editable.
- Returns
- Boolean
Definition at line 153 of file AttributeDescription.php.
| getInputType | ( | ) |
Get the input type for the value.
- Returns
- String
Definition at line 161 of file AttributeDescription.php.
| getDisplayType | ( | ) |
Get the display type for the value.
- Returns
- String
Definition at line 169 of file AttributeDescription.php.
Member Data Documentation
|
protected |
Definition at line 20 of file AttributeDescription.php.
|
protected |
Definition at line 21 of file AttributeDescription.php.
|
protected |
Definition at line 22 of file AttributeDescription.php.
|
protected |
Definition at line 23 of file AttributeDescription.php.
|
protected |
Definition at line 24 of file AttributeDescription.php.
|
protected |
Definition at line 25 of file AttributeDescription.php.
|
protected |
Definition at line 26 of file AttributeDescription.php.
|
protected |
Definition at line 27 of file AttributeDescription.php.
|
protected |
Definition at line 28 of file AttributeDescription.php.