15 include_once (
"FDL/Lib.Attr.php");
16 include_once (
"FDL/Class.DocFam.php");
23 print "Database not found : appl->dbaccess";
27 $usage->setDefinitionText(
"Generate Php Document Classes");
28 $docid =
$usage->addOptionalParameter(
"docid",
"special docid", null, 0);
35 print sprintf(_(
"family %s not found") .
"\n", $odocid);
41 $query->AddQuery(
"doctype='C'");
44 ini_set(
"memory_limit", -1);
47 $query->AddQuery(
"id=$docid");
68 foreach ($tii as $ii) {
74 foreach (
$tid as $k => $v) {
75 if (strstr($v[
"usefor"],
'W')) {
81 $wdoc->CreateProfileAttribute();
85 foreach (
$tid as $k => $v) {
86 if (strstr($v[
"usefor"],
'W') ===
false) {
93 require_once
'FDL/Lib.Attr.php';
100 catch(\Dcp\Exception $e) {
101 print $v[
"id"] .
"[" . $v[
"title"] .
"(" . $v[
"name"] .
")]\n";
102 error_log($e->getMessage());
109 foreach ($tfam as $k => $v) {
111 if ($v[
"fromid"] == $fromid) {
if($query->nb > 0) updateDoc($dbaccess, $v)
createDoc($dbaccess, $fromid, $control=true, $defaultvalues=true, $temporary=false)
getFamIdFromName($dbaccess, $name)
pushfam($fromid, &$tid, $tfam)
static buildFamilyFilesAndTables($dbaccess, $familyData, $interactive=false)
if(($docid!==0)&&(!is_numeric($docid))) $query
if($file) if($subject==""&&$file) if($subject=="") $err
Verify arguments for wsh programs.
static activateTrigger($dbaccess, $docid)