Go to the source code of this file.
Namespaces | |
FDL | |
Functions | |
color_failure ($msg) | |
color_success ($msg) | |
color_warning ($msg) | |
Variables | |
global | $action |
$usage = new ApiUsage() | |
$famId = $usage->addRequiredParameter("famid", "the family identifier used to filter") | |
$method | |
$arg = $usage->addOptionalParameter("arg", "optional method argument to set when calling method") | |
$revision | |
$docid = $usage->addOptionalParameter("docid", "use only for this document id") | |
$start = $usage->addOptionalParameter("start", "start from offset", array() , 0) | |
$slice = $usage->addOptionalParameter("slice", "limit from offset", array() , "all") | |
$fldid = $usage->addOptionalParameter("fldid", "use collection id to limit search") | |
$filter = $usage->addOptionalParameter("filter", "sql filter to limit search") | |
$save | |
$statusFile | |
$stopOnError = ($usage->addEmptyParameter("stop-on-error", "Stop processing when a document returns an error or throws an exception") !== false) | |
$allrev = ($revision == "yes") | |
$dbaccess = $action->dbaccess | |
if($dbaccess=="") if($statusFile=== '') | $famtitle = "" |
if($famId) | $s = new SearchDoc($dbaccess, $famId) |
$s | orderby = 'id desc' |
$s | slice = $slice |
$s | start = $start |
if($s->searchError()) | $targ = array() |
$card = $s->count() | |
$ret = "" | |
$countAll = $card | |
$countProcessed = 0 | |
$countSuccess = 0 | |
$countFailure = 0 | |
$exitcode = 0 | |
while($doc=$s->getNextDoc()) | $writeStatus |
color_failure | ( | $msg | ) |
Definition at line 22 of file refreshDocuments.php.
color_success | ( | $msg | ) |
Definition at line 28 of file refreshDocuments.php.
color_warning | ( | $msg | ) |
Definition at line 34 of file refreshDocuments.php.
global $action |
Definition at line 17 of file refreshDocuments.php.
$allrev = ($revision == "yes") |
Definition at line 88 of file refreshDocuments.php.
$arg = $usage->addOptionalParameter("arg", "optional method argument to set when calling method") |
Definition at line 57 of file refreshDocuments.php.
$card = $s->count() |
Definition at line 146 of file refreshDocuments.php.
$countAll = $card |
Definition at line 150 of file refreshDocuments.php.
$countFailure = 0 |
Definition at line 153 of file refreshDocuments.php.
$countProcessed = 0 |
Definition at line 151 of file refreshDocuments.php.
$countSuccess = 0 |
Definition at line 152 of file refreshDocuments.php.
$dbaccess = $action->dbaccess |
Definition at line 89 of file refreshDocuments.php.
Definition at line 62 of file refreshDocuments.php.
$exitcode = 0 |
Definition at line 154 of file refreshDocuments.php.
$famId = $usage->addRequiredParameter("famid", "the family identifier used to filter") |
Definition at line 42 of file refreshDocuments.php.
Definition at line 99 of file refreshDocuments.php.
Definition at line 66 of file refreshDocuments.php.
Definition at line 65 of file refreshDocuments.php.
$method |
Definition at line 43 of file refreshDocuments.php.
$ret = "" |
Definition at line 149 of file refreshDocuments.php.
Definition at line 58 of file refreshDocuments.php.
Definition at line 112 of file refreshDocuments.php.
$save |
Definition at line 67 of file refreshDocuments.php.
Definition at line 64 of file refreshDocuments.php.
Definition at line 63 of file refreshDocuments.php.
$statusFile |
Definition at line 72 of file refreshDocuments.php.
$stopOnError = ($usage->addEmptyParameter("stop-on-error", "Stop processing when a document returns an error or throws an exception") !== false) |
Definition at line 85 of file refreshDocuments.php.
if ($s->searchError()) $targ = array() |
Definition at line 144 of file refreshDocuments.php.
Definition at line 40 of file refreshDocuments.php.
while ($doc=$s->getNextDoc()) $writeStatus |
Definition at line 211 of file refreshDocuments.php.
$s orderby = 'id desc' |
Definition at line 114 of file refreshDocuments.php.
$s slice = $slice |
Definition at line 115 of file refreshDocuments.php.
$s start = $start |
Definition at line 116 of file refreshDocuments.php.