@@ 901-907 (lines=7) @@ | ||
898 | $where |
|
899 | ); |
|
900 | $this->getDatabase()->update($field, $this->getDatabase()->getFullTableName('site_content'), $where); |
|
901 | if ($this->getDatabase()->getRecordCount($result_pub) >= 1) { //Event unPublished doc |
|
902 | while ($row_pub = $this->getDatabase()->getRow($result_pub)) { |
|
903 | $this->invokeEvent("OnDocUnPublished", array( |
|
904 | "docid" => $row_pub['id'] |
|
905 | )); |
|
906 | } |
|
907 | } |
|
908 | ||
909 | // now, check for documents that need un-publishing |
|
910 | $field = array('published' => 0, 'publishedon' => 0); |
|
@@ 918-924 (lines=7) @@ | ||
915 | $where |
|
916 | ); |
|
917 | $this->getDatabase()->update($field, $this->getDatabase()->getFullTableName('site_content'), $where); |
|
918 | if ($this->getDatabase()->getRecordCount($result_unpub) >= 1) { //Event unPublished doc |
|
919 | while ($row_unpub = $this->getDatabase()->getRow($result_unpub)) { |
|
920 | $this->invokeEvent("OnDocUnPublished", array( |
|
921 | "docid" => $row_unpub['id'] |
|
922 | )); |
|
923 | } |
|
924 | } |
|
925 | ||
926 | $this->recentUpdate = $timeNow; |
|
927 |