|
@@ 1362-1368 (lines=7) @@
|
| 1359 |
|
$where |
| 1360 |
|
); |
| 1361 |
|
$this->getDatabase()->update($field, $this->getDatabase()->getFullTableName('site_content'), $where); |
| 1362 |
|
if ($this->getDatabase()->getRecordCount($result_pub) >= 1) { //Event unPublished doc |
| 1363 |
|
while ($row_pub = $this->getDatabase()->getRow($result_pub)) { |
| 1364 |
|
$this->invokeEvent("OnDocUnPublished", array( |
| 1365 |
|
"docid" => $row_pub['id'] |
| 1366 |
|
)); |
| 1367 |
|
} |
| 1368 |
|
} |
| 1369 |
|
|
| 1370 |
|
// now, check for documents that need un-publishing |
| 1371 |
|
$field = array('published' => 0, 'publishedon' => 0); |
|
@@ 1379-1385 (lines=7) @@
|
| 1376 |
|
$where |
| 1377 |
|
); |
| 1378 |
|
$this->getDatabase()->update($field, $this->getDatabase()->getFullTableName('site_content'), $where); |
| 1379 |
|
if ($this->getDatabase()->getRecordCount($result_unpub) >= 1) { //Event unPublished doc |
| 1380 |
|
while ($row_unpub = $this->getDatabase()->getRow($result_unpub)) { |
| 1381 |
|
$this->invokeEvent("OnDocUnPublished", array( |
| 1382 |
|
"docid" => $row_unpub['id'] |
| 1383 |
|
)); |
| 1384 |
|
} |
| 1385 |
|
} |
| 1386 |
|
|
| 1387 |
|
$this->recentUpdate = $timeNow; |
| 1388 |
|
|