$type
$type : string
setData(array $data) : \Charcoal\Admin\Property\Display
This function takes an array and fill the model object with its value.
This method either calls a setter for each key (set_{$key}()) or sets a public member.
For example, calling with setData(['properties'=>$properties]) would call
setProperties($properties), becasue setProperties() exists.
But calling with setData(['foobar'=>$foo]) would set the $foobar member
on the metadata object, because the method set_foobar() does not exist.
| array | $data | The display data. |
Chainable
setPropertyVal(mixed $val) : \Charcoal\Admin\Property\PropertyDisplayInterface
| mixed | $val | The property value. |
Chainable
setLang(string $lang) : \Charcoal\Admin\Property\PropertyInputInterface
| string | $lang | The language code / ident. |
Chainable
setDisplayClass(string $displayClass) : \Charcoal\Admin\Property\AbstractPropertyDisplay
| string | $displayClass | The display class attribute. |
If the class is not a string.
Chainable
setDisplayName(string $displayName) : \Charcoal\Admin\Property\AbstractPropertyInput
Set the display name.
Used for the HTML "name" attribute.
| string | $displayName | HTML id attribute. |
Chainable
setDisplayType(string $displayType) : \Charcoal\Admin\Property\AbstractPropertyDisplay
| string | $displayType | The display type. |
If provided argument is not of type 'string'.
Chainable
setProperty(\Charcoal\Property\PropertyInterface $p) : \Charcoal\Admin\Property\AbstractPropertyDisplay
| \Charcoal\Property\PropertyInterface | $p | The property. |
Chainable