16 include_once (
"FDL/Class.DocAttribute.php");
42 $this->attr[self::HIDDENFIELD] =
new FieldSetAttribute(self::HIDDENFIELD, 0,
"hiddens");
50 if (isset($this->attr[$id]))
return $this->attr[$id];
51 if (isset($this->attr[strtolower($id) ]))
return $this->attr[strtolower($id)];
60 return array_keys($this->attr);
70 if (isset($this->attr)) {
71 foreach ($this->attr as & $v) {
72 if ((isset($v->isNormal)) && ((($v->usefor !=
"Q") && (!$onlyopt)) || (($v->usefor ==
"O") && ($onlyopt)))) $tsa[$v->id] = & $v;
86 foreach ($this->attr as $k => $v) {
87 if (get_class($v) ==
"ActionAttribute") $tsa[$v->id] = $v;
98 if (isset($this->attr)) {
100 foreach ($this->attr as $k => $v) {
101 if (is_object($v) && (get_class($v) ==
"NormalAttribute") && ($v->usefor ==
"Q")) $tsa[$v->id] = $v;
114 if (
$a && (
$a->type ==
"array")) {
115 if (
$a->usefor !=
"Q") {
121 foreach ($tsa as $k => $v) {
122 if ($v->fieldSet->id == $id) $ta[$v->id] = $v;
131 if (!$this->isOrdered ||
$force) {
132 $this->absoluteOrders[self::HIDDENFIELD] = 0;
135 asort($this->absoluteOrders);
136 foreach ($this->absoluteOrders as $aid => $absorder) {
137 $this->attr[$aid] = & $tmpSort[$aid];
139 $this->isOrdered =
true;
149 $this->attr[$attr->id] =
$attr;
150 if (is_numeric($attr->ordered)) {
151 $this->absoluteOrders[$attr->id] = $attr->ordered;
153 $this->absoluteOrders[$attr->id] = (count($this->absoluteOrders) + 1) * 10;
print< H1 > Check Database< i > $dbaccess</i ></H1 > $a
orderAttributes($force=true)
GetNormalAttributes($onlyopt=false)
addAttribute(\BasicAttribute $attr)