Ejemplo n.º 1
0
 /**
  * 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();
 }
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }
Ejemplo n.º 4
0
 public function __construct($id = null)
 {
     $this->table = \fpcm\modules\nkorg\tweetextender\nkorgtweetextender::NKORGTWEETEXTENDER_TABLE_NAME;
     return parent::__construct($id);
 }
Ejemplo n.º 5
0
 /**
  * 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);
 }
Ejemplo n.º 6
0
 /**
  * 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;
 }
Ejemplo n.º 7
0
 /**
  * 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);
 }
Ejemplo n.º 8
0
 /**
  * Konstruktor
  * @param int $id
  */
 public function __construct($id = null)
 {
     $this->table = \fpcm\classes\database::tableTexts;
     parent::__construct($id);
 }
Ejemplo n.º 9
0
 /**
  * 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);
 }
Ejemplo n.º 10
0
 public function __construct($id = null)
 {
     $this->table = \fpcm\modules\nkorg\inactivity_manager\nkorginactivity_manager::NKORGINACTIVITY_MANAGER_TABLE_NAME;
     return parent::__construct($id);
 }
Ejemplo n.º 11
0
 /**
  * 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();
 }