Example #1
0
 function postSave($create = false)
 {
     IDF_Search::index($this);
     if ($create) {
         IDF_Timeline::insert($this, $this->get_project(), $this->get_author(), $this->creation_dtime);
     }
 }
Example #2
0
 function postSave($create = false)
 {
     if ($create) {
         IDF_Timeline::insert($this, $this->get_review()->get_project(), $this->get_review()->get_submitter());
         IDF_Search::index($this->get_review());
     }
 }
Example #3
0
 function postSave($create = false)
 {
     if ($create) {
         // Check if more than one revision for this page. We do
         // not want to insert the first revision in the timeline
         // as the page itself is inserted.  We do not insert on
         // update as update is performed to change the is_head
         // flag.
         $sql = new Pluf_SQL('wikipage=%s', array($this->wikipage));
         $rev = Pluf::factory('IDF_WikiRevision')->getList(array('filter' => $sql->gen()));
         if ($rev->count() > 1) {
             IDF_Timeline::insert($this, $this->get_wikipage()->get_project(), $this->get_submitter());
             foreach ($rev as $r) {
                 if ($r->id != $this->id and $r->is_head) {
                     $r->is_head = false;
                     $r->update();
                 }
             }
         }
         $page = $this->get_wikipage();
         $page->update();
         // Will update the modification timestamp.
         IDF_Search::index($page);
     }
 }
Example #4
0
 function postSave($create = false)
 {
     // Note: No indexing is performed here. The indexing is
     // triggered in the postSave step of the comment to ensure
     // that the issue as at least one comment in the database when
     // doing the indexing.
     if ($create) {
         IDF_Timeline::insert($this, $this->get_project(), $this->get_submitter());
     }
 }
Example #5
0
 function postSave($create = false)
 {
     if ($create) {
         // Check if more than one comment for this issue. We do
         // not want to insert the first comment in the timeline as
         // the issue itself is inserted.
         $sql = new Pluf_SQL('issue=%s', array($this->issue));
         $co = Pluf::factory('IDF_IssueComment')->getList(array('filter' => $sql->gen()));
         if ($co->count() > 1) {
             IDF_Timeline::insert($this, $this->get_issue()->get_project(), $this->get_submitter());
         }
     }
     IDF_Search::index($this->get_issue());
 }
Example #6
0
 function postSave($create = false)
 {
     if ($create) {
         IDF_Timeline::insert($this, $this->get_project(), $this->get_submitter(), $this->creation_dtime);
     }
 }