Public Member Functions | |
__construct ($id, $docid, $label) | |
getLabel () | |
getOption ($x, $def="") | |
getOptions () | |
setOption ($x, $v) | |
setVisibility ($vis) | |
isReal () | |
inArray () | |
isMultiple () | |
isMultipleInArray () | |
getTab () | |
getXmlSchema ($la) | |
getXmlValue (Doc &$doc, $opt=false) | |
getTextualValue (Doc $doc, $index=-1, Array $configuration=array()) | |
common_getXmlSchema (&$play) | |
Static Public Member Functions | |
static | encodeXml ($s, $quot=false) |
Data Fields | |
const | hiddenFieldId = Adoc::HIDDENFIELD |
$id | |
$docid | |
$labelText | |
$visibility | |
$mvisibility | |
$options | |
mask visibility More... | |
$docname | |
$type | |
$usefor | |
$ordered | |
$format | |
$isNormal = null | |
$fieldSet | |
$_topt = null | |
Generic attribute class
Definition at line 21 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 51 of file Class.DocAttribute.php.
common_getXmlSchema | ( | & | $play | ) |
Generate XML schema layout
Layout | $play |
Definition at line 259 of file Class.DocAttribute.php.
|
static |
Escape value with xml entities
string | $s | value |
bool | $quot | to encode also quote " |
Definition at line 148 of file Class.DocAttribute.php.
getLabel | ( | ) |
getOption | ( | $x, | |
$def = "" |
|||
) |
Return value of option $x
string | $x | option name |
string | $def | default value |
Definition at line 77 of file Class.DocAttribute.php.
getOptions | ( | ) |
Return all value of options
Definition at line 101 of file Class.DocAttribute.php.
getTab | ( | ) |
Get tab ancestor false if not found
Definition at line 207 of file Class.DocAttribute.php.
getTextualValue | ( | Doc | $doc, |
$index = - 1 , |
|||
Array | $configuration = array() |
||
) |
Get human readable textual value Fallback method
Definition at line 250 of file Class.DocAttribute.php.
getXmlSchema | ( | $la | ) |
Export values as xml fragment
array | $la | array of DocAttribute |
Definition at line 223 of file Class.DocAttribute.php.
export values as xml fragment
Doc | $doc | working doc |
bool | \exportOptionAttribute | $opt |
Definition at line 236 of file Class.DocAttribute.php.
inArray | ( | ) |
to see if an attribute is n item of an array
Definition at line 179 of file Class.DocAttribute.php.
isMultiple | ( | ) |
verify if accept multiple value
Definition at line 188 of file Class.DocAttribute.php.
isMultipleInArray | ( | ) |
verify if attribute is multiple value and if is also in array multiple^2
Definition at line 197 of file Class.DocAttribute.php.
isReal | ( | ) |
test if attribute is not a auto created attribute
Definition at line 137 of file Class.DocAttribute.php.
setOption | ( | $x, | |
$v | |||
) |
Temporary change option
string | $x | name |
string | $v | value |
Definition at line 116 of file Class.DocAttribute.php.
setVisibility | ( | $vis | ) |
temporary change visibility
string | $vis | new visibility : R|H|W|O|I |
Definition at line 128 of file Class.DocAttribute.php.
$_topt = null |
Definition at line 43 of file Class.DocAttribute.php.
Definition at line 25 of file Class.DocAttribute.php.
$docname |
Definition at line 30 of file Class.DocAttribute.php.
$fieldSet |
Definition at line 39 of file Class.DocAttribute.php.
$format |
Definition at line 34 of file Class.DocAttribute.php.
$id |
Definition at line 24 of file Class.DocAttribute.php.
$isNormal = null |
Definition at line 35 of file Class.DocAttribute.php.
$labelText |
Definition at line 26 of file Class.DocAttribute.php.
$mvisibility |
Definition at line 28 of file Class.DocAttribute.php.
$options |
mask visibility
Definition at line 29 of file Class.DocAttribute.php.
$ordered |
Definition at line 33 of file Class.DocAttribute.php.
$type |
Definition at line 31 of file Class.DocAttribute.php.
$usefor |
Definition at line 32 of file Class.DocAttribute.php.
$visibility |
Definition at line 27 of file Class.DocAttribute.php.
const hiddenFieldId = Adoc::HIDDENFIELD |
Definition at line 23 of file Class.DocAttribute.php.