19 include_once (
"FDL/Class.Dir.php");
20 include_once (
"FDL/editutil.php");
47 if (
$type ==
"doclink") {
59 $isInAbstract =
false;
60 $fieldSet =
$doc->attr[
"FIELD_HIDDENS"];
62 if (!$phpfunc) $phpfunc =
"::getTitle($id_$attrid):$attrid";
70 $oattr1 =
new NormalAttribute(
"id_$attrid",
$doc->id,
"id $label",
"docid",
$format, $repeat, $order, $link, $visibility, $needed, $isInTitle, $isInAbstract, $fieldSet, $phpfile, $phpfunc, $elink, $phpconstraint, $usefor, $eformat, $options);
81 $isInAbstract =
false;
83 $phpfunc =
"lfamily(D,$famid,$attrid):id_$attrid,$attrid";
84 $fieldSet =
$doc->attr[
"FIELD_HIDDENS"];
89 $options =
"elabel=" . (
$label);
90 if ($esize) $options.=
"|esize=$esize";
91 $oattr =
new NormalAttribute($attrid,
$doc->id,
$label,
"text",
$format, $repeat, $order, $link, $visibility, $needed, $isInTitle, $isInAbstract, $fieldSet, $phpfile, $phpfunc, $elink, $phpconstraint, $usefor, $eformat, $options);
93 $doc->attr[$oattr1->id] = $oattr1;
95 $doc->attr[$oattr->id] = $oattr;
99 if (preg_match(
'/^(.*)\("([^"]*)"/',
$type, $reg)) {
100 $type = trim($reg[1]);
111 $isInAbstract =
false;
112 $fieldSet =
$doc->attr[
"FIELD_HIDDENS"];
118 if (!$options) $options =
"elabel=" . (
$label);
119 if ($esize) $options.=
"|esize=$esize";
120 $oattr =
new NormalAttribute($attrid,
$doc->id,
$label,
$type,
$format, $repeat, $order, $link, $visibility, $needed, $isInTitle, $isInAbstract, $fieldSet, $phpfile, $phpfunc, $elink, $phpconstraint, $usefor, $eformat, $options);
122 $doc->attr[$attrid] = $oattr;
127 $action->lay->template = $htmlinput;