Example #1
0
 function Update($excludeOnUpdate = null)
 {
     @fprintf(STDOUT, "DBG9 %s/%s\n", __CLASS__, __FUNCTION__);
     #SED_DELETE_ON_ROLL
     if ($excludeOnUpdate == null) {
         $col = $this->Collection();
         if ($col != null) {
             $excludeOnUpdate = $col->ExcludeOnUpdate();
         }
     }
     if ($excludeOnUpdate != 'movie') {
         if (isset($this->_movie)) {
             @fprintf(STDOUT, "DBG9 %s/%s Updating movie\n", __CLASS__, __FUNCTION__);
             #SED_DELETE_ON_ROLL
             $this->_movie->Update();
         }
     }
     if ($excludeOnUpdate != 'person') {
         if (isset($this->_person)) {
             @fprintf(STDOUT, "DBG9 %s/%s Updating person\n", __CLASS__, __FUNCTION__);
             #SED_DELETE_ON_ROLL
             $this->_person->Update();
         }
     }
     parent::Update();
 }
Example #2
0
 function Update()
 {
     $this->_pictures->MakePictureDirectory();
     parent::Update();
 }
Example #3
0
 function Update()
 {
     $isNew = $this->IsNew();
     parent::Update();
     if ($isNew) {
         if (file_exists($fifoPath = 'admin/fifo/act')) {
             $fifo = fopen($fifoPath, 'w');
             fwrite($fifo, $this->ID() . ';');
             fclose($fifo);
         }
     }
 }
Example #4
0
 function Update()
 {
     $acts =& $this->Actions();
     $acts->Update();
     parent::Update();
 }
Example #5
0
 function Update()
 {
     @fprintf(STDOUT, "DBG9 %s/%s\n", __CLASS__, __FUNCTION__);
     #SED_DELETE_ON_ROLL
     $col = $this->Collection();
     if ($col->ExcludeOnUpdate() != 'movie') {
         if (isset($this->_movie)) {
             @fprintf(STDOUT, "DBG9 %s/%s Updating movie\n", __CLASS__, __FUNCTION__);
             #SED_DELETE_ON_ROLL
             $this->_movie->Update();
         }
     }
     if ($col->ExcludeOnUpdate() != 'category') {
         if (isset($this->_category)) {
             @fprintf(STDOUT, "DBG9 %s/%s Updating category\n", __CLASS__, __FUNCTION__);
             #SED_DELETE_ON_ROLL
             $this->_category->Update();
         }
     }
     parent::Update();
 }
Example #6
0
 public function Update()
 {
     parent::Update();
     $children =& $this->ChildPosts();
     foreach ($children as $child) {
         $child->Update();
     }
 }