@@ 1335-1341 (lines=7) @@ | ||
1332 | $where |
|
1333 | ); |
|
1334 | $this->getDatabase()->update($field, $this->getDatabase()->getFullTableName('site_content'), $where); |
|
1335 | if ($this->getDatabase()->getRecordCount($result_pub) >= 1) { //Event unPublished doc |
|
1336 | while ($row_pub = $this->getDatabase()->getRow($result_pub)) { |
|
1337 | $this->invokeEvent("OnDocUnPublished", array( |
|
1338 | "docid" => $row_pub['id'] |
|
1339 | )); |
|
1340 | } |
|
1341 | } |
|
1342 | ||
1343 | // now, check for documents that need un-publishing |
|
1344 | $field = array('published' => 0, 'publishedon' => 0); |
|
@@ 1352-1358 (lines=7) @@ | ||
1349 | $where |
|
1350 | ); |
|
1351 | $this->getDatabase()->update($field, $this->getDatabase()->getFullTableName('site_content'), $where); |
|
1352 | if ($this->getDatabase()->getRecordCount($result_unpub) >= 1) { //Event unPublished doc |
|
1353 | while ($row_unpub = $this->getDatabase()->getRow($result_unpub)) { |
|
1354 | $this->invokeEvent("OnDocUnPublished", array( |
|
1355 | "docid" => $row_unpub['id'] |
|
1356 | )); |
|
1357 | } |
|
1358 | } |
|
1359 | ||
1360 | $this->recentUpdate = $timeNow; |
|
1361 |