Public Member Functions | |
__construct ($id, $docid, $label) | |
getLabel () | |
getOption ($x, $def="") | |
getOptions () | |
setOption ($x, $v) | |
setVisibility ($vis) | |
setNeeded ($need) | |
isReal () | |
inArray () | |
isMultiple () | |
getTab () | |
getXmlSchema () | |
getXmlValue () | |
getTextualValue () | |
common_getXmlSchema (&$play) | |
Static Public Member Functions | |
static | encodeXml ($s, $quot=false) |
Data Fields | |
$id | |
$docid | |
$labelText | |
$visibility | |
$options | |
$docname | |
$type | |
Generic attribute class
Definition at line 23 of file Class.DocAttribute.php.
__construct | ( | $id, | |
$docid, | |||
$label | |||
) |
Construct a basic attribute
string | $id | logical name of the attr |
string | $docid | |
string | $label |
Definition at line 41 of file Class.DocAttribute.php.
common_getXmlSchema | ( | & | $play | ) |
Generate XML schema layout
unknown_type | $play |
Definition at line 235 of file Class.DocAttribute.php.
|
static |
Escape value with xml entities
string | $s | value |
Definition at line 144 of file Class.DocAttribute.php.
getLabel | ( | ) |
getOption | ( | $x, | |
$def = "" |
|||
) |
Return value of option $x
$x | option name |
$def | default value |
Definition at line 67 of file Class.DocAttribute.php.
getOptions | ( | ) |
Return all value of options
Definition at line 88 of file Class.DocAttribute.php.
getTab | ( | ) |
getTextualValue | ( | ) |
Get human readable textual value Fallback method
Definition at line 226 of file Class.DocAttribute.php.
getXmlSchema | ( | ) |
getXmlValue | ( | ) |
inArray | ( | ) |
to see if an attribute is n item of an array
Definition at line 175 of file Class.DocAttribute.php.
isMultiple | ( | ) |
verify if accept multiple value
Definition at line 187 of file Class.DocAttribute.php.
isReal | ( | ) |
test if attribute is not a auto created attribute
Definition at line 133 of file Class.DocAttribute.php.
setNeeded | ( | $need | ) |
temporary change need
bool | $need | true means needed, false not needed |
Definition at line 124 of file Class.DocAttribute.php.
setOption | ( | $x, | |
$v | |||
) |
Temporary change option
$x | name |
$v | value |
Definition at line 103 of file Class.DocAttribute.php.
setVisibility | ( | $vis | ) |
temporary change visibility
char | $vis | new visibility : R|H|W|O|I |
Definition at line 115 of file Class.DocAttribute.php.
$docid |
Definition at line 26 of file Class.DocAttribute.php.
$docname |
Definition at line 30 of file Class.DocAttribute.php.
$id |
Definition at line 25 of file Class.DocAttribute.php.
$labelText |
Definition at line 27 of file Class.DocAttribute.php.
$options |
Definition at line 29 of file Class.DocAttribute.php.
$type |
Definition at line 31 of file Class.DocAttribute.php.
$visibility |
Definition at line 28 of file Class.DocAttribute.php.
← centre documentaire |
|