function save() { if ($this->bFilenamesSet == false) { return false; } $bRetVal = $this->rePodcast->save(); if ($bRetVal) { sql_slave_exclude(); } return $bRetVal; }
public function save() { // additional safeguard against setting unallowd log flags if (!sql_value("SELECT `maintenance_logs` FROM `log_types` WHERE `id`='&1'", false, $this->getType())) { $this->setNeedsMaintenance(false); $this->setListingOutdated(false); } sql_slave_exclude(); $saved = $this->reCacheLog->save(); if ($saved && $this->nLogId == ID_NEW) { $this->nLogId = $this->reCacheLog->getValue('id'); } return $saved; }
function save() { sql_slave_exclude(); $saved = $this->reCacheLog->save(); if ($saved && $this->nLogId == ID_NEW) { $this->nLogId = $this->reCacheLog->getValue('id'); } return $saved; }
function save($restore = false, $original_id = 0, $original_url = "") { $undelete = $original_id != 0; if ($undelete) { if ($this->bFilenamesSet == true) { return false; } else { // restore picture file $this->setUrl($original_url); // set the url, so that we can $filename = $this->getFilename(); // .. retreive the file path+name $this->setFilenames($filename); // now set url(s) from the new uuid @rename($this->deleted_filename($filename), $this->getFilename()); } } if ($this->bFilenamesSet == false) { return false; } $this->setArchiveFlag($restore, $original_id); $bRetVal = $this->rePicture->save(); $this->resetArchiveFlag(); if ($bRetVal) { $this->nPictureId = $this->rePicture->getValue('id'); if ($this->getObjectType() == OBJECT_CACHE && $this->getMapPreview()) { sql("UPDATE `pictures` SET `mappreview`=0 WHERE `object_type`='&1' AND `object_id`='&2' AND `id`!='&3'", OBJECT_CACHE, $this->getObjectId(), $this->getPictureId()); } sql_slave_exclude(); } return $bRetVal; }
function save() { $bNeedStatpicClear = $this->reUser->getChanged('username'); sql_slave_exclude(); if ($this->reUser->save()) { if ($this->getUserId() == ID_NEW) { $this->nUserId = $this->reUser->getValue('user_id'); } $this->getStatpic()->invalidate(); return true; } else { return false; } }
function save() { sql_slave_exclude(); return $this->reCacheDesc->save(); }
function save() { $bNeedStatpicClear = $this->reUser->getChanged('username'); if ($this->reUser->save()) { $this->getStatpic()->invalidate(); sql_slave_exclude(); return true; } else { return false; } }
function save() { sql_slave_exclude(); if ($this->reCachelist->save()) { if ($this->getId() == ID_NEW) { $this->nCachelistId = $this->reCachelist->getValue('id'); } return true; } else { return false; } }
function save() { if ($this->reCache->save()) { sql_slave_exclude(); return true; } else { return false; } }
function save() { if ($this->getVisibility() > 0) { $this->setPassword(""); } sql_slave_exclude(); if ($this->reCachelist->save()) { if ($this->getId() == ID_NEW) { $this->nCachelistId = $this->reCachelist->getValue('id'); } return true; } else { return false; } }