18 include_once (
"FDL/Class.DocAttribute.php");
28 $this->attr[
"FIELD_HIDDENS"] =
new FieldSetAttribute(
"FIELD_HIDDENS", 0,
"hiddens");
33 if (isset($this->attr[
$id]))
return $this->attr[
$id];
34 if (isset($this->attr[strtolower($id) ]))
return $this->attr[
$id];
43 return array_keys($this->attr);
48 if (isset($this->attr)) {
49 foreach ($this->attr as $k => $v) {
50 if ((get_class($v) ==
"NormalAttribute") && ((($v->usefor !=
"Q") && (!$onlyopt)) || (($v->usefor ==
"O") && ($onlyopt)))) $tsa[$v->id] = $v;
60 foreach ($this->attr as $k => $v) {
61 if (get_class($v) ==
"ActionAttribute") $tsa[$v->id] = $v;
69 if (isset($this->attr)) {
71 while (list($k, $v) = each($this->attr)) {
72 if ((get_class($v) ==
"NormalAttribute") && ($v->usefor ==
"Q")) $tsa[$v->id] = $v;
81 if (
$a && (
$a->type ==
"array")) {
82 if (
$a->usefor !=
"Q") {
88 foreach ($tsa as $k => $v) {
89 if ($v->fieldSet->id ==
$id)
$ta[$v->id] = $v;