Go to the source code of this file.
Functions | |
if($parms['transaction']) | sqlexec (&$dbobj, &$parms, $sql) |
Variables | |
global | $appl |
global | $action |
$dbaccess = GetParam("FREEDOM_DB") | |
if($dbaccess=="") | $o = new DbObj($dbaccess) |
if(!is_object($o)) | $parms = array() |
$usage = new ApiUsage() | |
$parms ['dryrun'] | |
if($parms['dryrun']== 'yes') | else |
$parms ['famid'] = $usage->addOption("famid", "Process all families (keyword 'all') or only a specific family (family name or family id)", array() , "all") | |
if($parms['famid']!= 'all') | $parms ['transaction'] |
$parms ['realclean'] | |
$q = new QueryDb($dbaccess, "DocAttr") | |
$q | order_by = '(docid, id)' |
if(is_numeric($parms['famid'])) | $attrList = $q->Query(0, 0, "TABLE") |
if ($parms['transaction']) sqlexec | ( | & | $dbobj, |
& | $parms, | ||
$sql | |||
) |
Commit transaction if required
Definition at line 183 of file DocRelInit.php.
global $action |
Definition at line 12 of file DocRelInit.php.
global $appl |
Definition at line 12 of file DocRelInit.php.
if (is_numeric($parms['famid'])) $attrList = $q->Query(0, 0, "TABLE") |
Definition at line 93 of file DocRelInit.php.
$dbaccess = GetParam("FREEDOM_DB") |
Setup main db connection
Definition at line 22 of file DocRelInit.php.
Definition at line 26 of file DocRelInit.php.
if (!is_object($o)) $parms = array() |
Parse arguments
Definition at line 33 of file DocRelInit.php.
$parms['dryrun'] |
Definition at line 37 of file DocRelInit.php.
$parms['famid'] = $usage->addOption("famid", "Process all families (keyword 'all') or only a specific family (family name or family id)", array() , "all") |
Definition at line 47 of file DocRelInit.php.
if ($parms['famid']!= 'all') $parms['transaction'] |
Definition at line 62 of file DocRelInit.php.
$parms['realclean'] |
Definition at line 72 of file DocRelInit.php.
$q = new QueryDb($dbaccess, "DocAttr") |
Load all docid attributes
Definition at line 85 of file DocRelInit.php.
Definition at line 34 of file DocRelInit.php.
if ($parms['realclean']== 'yes'&&$parms['famid']== 'all') else |
Definition at line 43 of file DocRelInit.php.
$q order_by = '(docid, id)' |
Definition at line 86 of file DocRelInit.php.
← centre documentaire |
|