/** * Konstruktor * @param int $articleId * @param int $revisionIdx */ public function __construct($articleId = 0, $revisionIdx = 0) { $this->article_id = (int) $articleId; $this->revision_idx = (int) $revisionIdx; $this->table = \fpcm\classes\database::tableRevisions; parent::__construct(); if (!$this->article_id || !$this->revision_idx) { return true; } $this->init(); }
/** * Löscht eine Benutzer-Rolle in der Datenbank * @return boolean */ public function delete() { if ($this->id <= 3) { trigger_error('Tried to delete system roll with: ' . $this->id); return false; } $return = parent::delete(); $permissions = new \fpcm\model\system\permissions($this->getId()); if ($permissions->delete()) { $return = $return && true; } return $return; }
/** * Magic set * @param mixed $name * @param mixed $value */ public function __set($name, $value) { if ($name == 'sessionId') { $this->sessionid = $value; return true; } if ($name == 'userId') { $this->userid = $value; } parent::__set($name, $value); }
public function __construct($id = null) { $this->table = \fpcm\modules\nkorg\tweetextender\nkorgtweetextender::NKORGTWEETEXTENDER_TABLE_NAME; return parent::__construct($id); }
/** * Magic set * @param mixed $name * @param mixed $value */ public function __set($name, $value) { if ($name == 'permissionData') { $this->permissiondata = $value; return true; } parent::__set($name, $value); }
/** * Füllt Objekt mit Daten aus Datenbank-Result * @param object $object * @return boolean */ public function createFromDbObject($object) { $res = parent::createFromDbObject($object); $this->groupname = $this->language->translate($this->groupname); return $res; }
/** * Konstruktor * @param int $id */ public function __construct($id = null) { $this->table = \fpcm\classes\database::tableCategories; $this->wordbanList = new \fpcm\model\wordban\items(); parent::__construct($id); }
/** * Konstruktor * @param int $id */ public function __construct($id = null) { $this->table = \fpcm\classes\database::tableTexts; parent::__construct($id); }
/** * Initialisiert System Update * @param int $init */ public function __construct() { parent::__construct(); $this->dbcon = new \fpcm\classes\database(); $this->config = new \fpcm\model\system\config(false, false); }
public function __construct($id = null) { $this->table = \fpcm\modules\nkorg\inactivity_manager\nkorginactivity_manager::NKORGINACTIVITY_MANAGER_TABLE_NAME; return parent::__construct($id); }
/** * Löscht News in der Datenbank * @return bool */ public function delete() { if ($this->config->articles_trash && !$this->forceDelete) { $this->cache->cleanup(false, \fpcm\model\articles\article::CACHE_ARTICLE_MODULE); $this->deleted = 1; return $this->update(); } $this->deleteRevisions(); $commentList = new \fpcm\model\comments\commentList(); $commentList->deleteCommentsByArticle($this->id); return parent::delete(); }