Inheritance diagram for NormalAttribute:
Collaboration diagram for NormalAttribute:Public Member Functions | |
| __construct ($id, $docid, $label, $type, $format, $repeat, $order, $link, $visibility, $needed, $isInTitle, $isInAbstract, &$fieldSet, $phpfile, $phpfunc, $elink, $phpconstraint="", $usefor="", $eformat="", $options="", $docname="") | |
| setNeeded ($need) | |
| prepareHtmltextForExport ($value) | |
| getXmlSchema ($la) | |
| common_getXmlSchema (&$play) | |
| getXmlValue (Doc &$doc, $opt=false) | |
| text_getXmlSchema () | |
| enum_getXmlSchema () | |
| docid_getXmlSchema () | |
| date_getXmlSchema () | |
| timestamp_getXmlSchema () | |
| color_getXmlSchema () | |
| int_getXmlSchema () | |
| longtext_getXmlSchema () | |
| float_getXmlSchema () | |
| time_getXmlSchema () | |
| file_getXmlSchema () | |
| array_getXmlSchema (&$la) | |
| getTextualValue (Doc $doc, $index=-1, Array $configuration=array()) | |
| getNumberValue (Doc $doc, $index=-1, $decimalSeparator=".") | |
| inArray () | |
| getEnum ($returnDisabled=true) | |
| getEnumLabel ($enumid=null, $returnDisabled=true) | |
| addEnum ($dbaccess, $key, $label) | |
| existEnum ($key, $completeKey=true) | |
Public Member Functions inherited from BasicAttribute | |
| __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 | resetEnum () |
Static Public Member Functions inherited from BasicAttribute | |
| static | encodeXml ($s, $quot=false) |
Data Fields | |
| const | _cEnum = "_CACHE_ENUM" |
| const | _cEnumLabel = "_CACHE_ENUMLABEL" |
| const | _cParent = "_CACHE_PARENT" |
| $needed | |
| $format | |
| $eformat | |
| $repeat | |
| $isNormal = true | |
| $isInTitle | |
| $isInAbstract | |
| $link | |
| $phpfile | |
| $phpfunc | |
| $elink | |
| $phpconstraint | |
| $isAlone = false | |
| $enum | |
| $enumlabel | |
Data Fields inherited from BasicAttribute | |
| const | hiddenFieldId = Adoc::HIDDENFIELD |
| $id | |
| $docid | |
| $labelText | |
| $visibility | |
| $mvisibility | |
| $options | |
| mask visibility More... | |
| $docname | |
| $type | |
| $usefor | |
| $ordered | |
| $format | |
| $isNormal = null | |
| $fieldSet | |
| $_topt = null | |
Protected Attributes | |
| $textualValueMultipleSeparator | |
| $originalPhpfile | |
| $originalPhpfunc | |
NormalAttribute Class Non structural attribute (all attribute except frame and tab)
Definition at line 300 of file Class.DocAttribute.php.
| __construct | ( | $id, | |
| $docid, | |||
| $label, | |||
| $type, | |||
| $format, | |||
| $repeat, | |||
| $order, | |||
| $link, | |||
| $visibility, | |||
| $needed, | |||
| $isInTitle, | |||
| $isInAbstract, | |||
| & | $fieldSet, | ||
| $phpfile, | |||
| $phpfunc, | |||
| $elink, | |||
$phpconstraint = "", |
|||
$usefor = "", |
|||
$eformat = "", |
|||
$options = "", |
|||
$docname = "" |
|||
| ) |
Normal Attribute constructor : non structural attribute
| int | $id | id of the attribute |
| int | $docid | id of the family |
| string | $label | default translate key |
| string | $type | kind of attribute |
| string | $format | format option |
| string | $repeat | is repeteable attr |
| int | $order | display order |
| string | $link | link option |
| string | $visibility | visibility option |
| bool | $needed | is mandotary attribute |
| bool | $isInTitle | is used to compute title |
| bool | $isInAbstract | is used in abstract view |
| FieldSetAttribute | &$fieldSet | parent attribute |
| string | $phpfile | php file used with the phpfunc |
| string | $phpfunc | helpers function |
| string | $elink | eling option |
| string | $phpconstraint | class php function |
| string | $usefor | Attribute or Parameter |
| string | $eformat | eformat option |
| string | $options | option string |
| string | $docname |
Definition at line 378 of file Class.DocAttribute.php.
| addEnum | ( | $dbaccess, | |
| $key, | |||
| $label | |||
| ) |
add new item in enum list items
| string | $dbaccess | dbaccess string |
| string | $key | database key |
| string | $label | human label |
Definition at line 1130 of file Class.DocAttribute.php.
Here is the call graph for this function:| array_getXmlSchema | ( | & | $la | ) |
Array XML schema
| BasicAttribute[] | &$la |
Definition at line 801 of file Class.DocAttribute.php.
Here is the call graph for this function:| color_getXmlSchema | ( | ) |
Color XML schema
Definition at line 734 of file Class.DocAttribute.php.
Here is the call graph for this function:| common_getXmlSchema | ( | & | $play | ) |
Generate XML schema layout
| Layout | $play |
Definition at line 478 of file Class.DocAttribute.php.
Here is the call graph for this function:| date_getXmlSchema | ( | ) |
date XML schema
Definition at line 712 of file Class.DocAttribute.php.
Here is the call graph for this function:| docid_getXmlSchema | ( | ) |
docid XML schema
Definition at line 699 of file Class.DocAttribute.php.
Here is the call graph for this function:| enum_getXmlSchema | ( | ) |
enum XML schema
Definition at line 678 of file Class.DocAttribute.php.
Here is the call graph for this function:| existEnum | ( | $key, | |
$completeKey = true |
|||
| ) |
Test if an enum key exists
| string | $key | enumKey |
| bool | $completeKey | if true test complete key with path else without path |
Definition at line 1270 of file Class.DocAttribute.php.
Here is the call graph for this function:| file_getXmlSchema | ( | ) |
File XML schema
Definition at line 789 of file Class.DocAttribute.php.
Here is the call graph for this function:| float_getXmlSchema | ( | ) |
Float XML schema
Definition at line 767 of file Class.DocAttribute.php.
Here is the call graph for this function:| getEnum | ( | $returnDisabled = true | ) |
Return array of enumeration definition the array's keys are the enum key and the values are the labels
| bool | $returnDisabled | if false disabled enum are not returned |
Definition at line 917 of file Class.DocAttribute.php.
Here is the call graph for this function:| getEnumLabel | ( | $enumid = null, |
|
$returnDisabled = true |
|||
| ) |
return array of enumeration definition the array'skeys are the enum single key and the values are the complete labels
| string | $enumid | the key of enumerate (if no parameter all labels are returned |
| bool | $returnDisabled | if false disabled enum are not returned |
Definition at line 1079 of file Class.DocAttribute.php.
Here is the call graph for this function:| getNumberValue | ( | Doc | $doc, |
$index = - 1, |
|||
$decimalSeparator = "." |
|||
| ) |
| getTextualValue | ( | Doc | $doc, |
$index = - 1, |
|||
| Array | $configuration = array() |
||
| ) |
Get the textual value of an attribute
| Doc | $doc | current Doc |
| int | $index | index if multiple |
| array | $configuration | value config array : dateFormat => 'US' 'ISO', decimalSeparator => '.', longtextMultipleBrToCr => ' ' multipleSeparator => array(0 => 'arrayLine', 1 => 'multiple') |
(defaultValue : dateFormat : 'US', decimalSeparator : '.', multiple => array(0 => "\n", 1 => ", "))
Definition at line 833 of file Class.DocAttribute.php.
Here is the call graph for this function:| getXmlSchema | ( | $la | ) |
Generate the xml schema fragment
| array | $la | array of DocAttribute |
Definition at line 436 of file Class.DocAttribute.php.
Here is the call graph for this function:export values as xml fragment
| Doc | $doc | working doc |
| bool | \exportOptionAttribute | $opt |
Definition at line 524 of file Class.DocAttribute.php.
Here is the call graph for this function:| inArray | ( | ) |
to see if an attribute is n item of an array
Definition at line 906 of file Class.DocAttribute.php.
| int_getXmlSchema | ( | ) |
int XML schema
Definition at line 745 of file Class.DocAttribute.php.
Here is the call graph for this function:| longtext_getXmlSchema | ( | ) |
longText XML schema
Definition at line 756 of file Class.DocAttribute.php.
Here is the call graph for this function:| prepareHtmltextForExport | ( | $value | ) |
Parse htmltext and replace id by logicalname for links
| string | $value | Formated value of attribute |
Definition at line 417 of file Class.DocAttribute.php.
Here is the call graph for this function:
|
static |
reset Enum cache
Definition at line 1065 of file Class.DocAttribute.php.
| setNeeded | ( | $need | ) |
temporary change need
| bool | $need | true means needed, false not needed |
Definition at line 407 of file Class.DocAttribute.php.
| text_getXmlSchema | ( | ) |
custom textual XML schema
Definition at line 664 of file Class.DocAttribute.php.
Here is the call graph for this function:| time_getXmlSchema | ( | ) |
Time XML schema
Definition at line 778 of file Class.DocAttribute.php.
Here is the call graph for this function:| timestamp_getXmlSchema | ( | ) |
timeStamp XML schema
Definition at line 723 of file Class.DocAttribute.php.
Here is the call graph for this function:| $eformat |
Definition at line 310 of file Class.DocAttribute.php.
| $elink |
Definition at line 324 of file Class.DocAttribute.php.
| $enum |
Definition at line 334 of file Class.DocAttribute.php.
| $enumlabel |
Definition at line 338 of file Class.DocAttribute.php.
| $format |
Definition at line 309 of file Class.DocAttribute.php.
| $isAlone = false |
Definition at line 330 of file Class.DocAttribute.php.
| $isInAbstract |
Definition at line 320 of file Class.DocAttribute.php.
| $isInTitle |
Definition at line 316 of file Class.DocAttribute.php.
| $isNormal = true |
Definition at line 312 of file Class.DocAttribute.php.
| $link |
Definition at line 321 of file Class.DocAttribute.php.
| $needed |
Definition at line 308 of file Class.DocAttribute.php.
|
protected |
Definition at line 351 of file Class.DocAttribute.php.
|
protected |
Definition at line 352 of file Class.DocAttribute.php.
| $phpconstraint |
Definition at line 325 of file Class.DocAttribute.php.
| $phpfile |
Definition at line 322 of file Class.DocAttribute.php.
| $phpfunc |
Definition at line 323 of file Class.DocAttribute.php.
| $repeat |
Definition at line 311 of file Class.DocAttribute.php.
|
protected |
Definition at line 343 of file Class.DocAttribute.php.
| const _cEnum = "_CACHE_ENUM" |
Definition at line 302 of file Class.DocAttribute.php.
| const _cEnumLabel = "_CACHE_ENUMLABEL" |
Definition at line 303 of file Class.DocAttribute.php.
| const _cParent = "_CACHE_PARENT" |
Definition at line 304 of file Class.DocAttribute.php.