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(); }
function Update() { $this->_pictures->MakePictureDirectory(); parent::Update(); }
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); } } }
function Update() { $acts =& $this->Actions(); $acts->Update(); parent::Update(); }
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(); }
public function Update() { parent::Update(); $children =& $this->ChildPosts(); foreach ($children as $child) { $child->Update(); } }