コード例 #1
0
ファイル: revision.php プロジェクト: sea75300/fanpresscm3
 /**
  * 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();
 }
コード例 #2
0
ファイル: userRoll.php プロジェクト: sea75300/fanpresscm3
 /**
  * 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;
 }
コード例 #3
0
ファイル: session.php プロジェクト: sea75300/fanpresscm3
 /**
  * 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);
 }
コード例 #4
0
ファイル: termlist.php プロジェクト: sea75300/fanpresscm3
 public function __construct($id = null)
 {
     $this->table = \fpcm\modules\nkorg\tweetextender\nkorgtweetextender::NKORGTWEETEXTENDER_TABLE_NAME;
     return parent::__construct($id);
 }
コード例 #5
0
ファイル: permissions.php プロジェクト: sea75300/fanpresscm3
 /**
  * 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);
 }
コード例 #6
0
ファイル: author.php プロジェクト: sea75300/fanpresscm3
 /**
  * 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;
 }
コード例 #7
0
ファイル: category.php プロジェクト: sea75300/fanpresscm3
 /**
  * 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);
 }
コード例 #8
0
ファイル: item.php プロジェクト: sea75300/fanpresscm3
 /**
  * Konstruktor
  * @param int $id
  */
 public function __construct($id = null)
 {
     $this->table = \fpcm\classes\database::tableTexts;
     parent::__construct($id);
 }
コード例 #9
0
ファイル: finalizer.php プロジェクト: sea75300/fanpresscm3
 /**
  * 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);
 }
コード例 #10
0
ファイル: messages.php プロジェクト: sea75300/fanpresscm3
 public function __construct($id = null)
 {
     $this->table = \fpcm\modules\nkorg\inactivity_manager\nkorginactivity_manager::NKORGINACTIVITY_MANAGER_TABLE_NAME;
     return parent::__construct($id);
 }
コード例 #11
0
ファイル: article.php プロジェクト: sea75300/fanpresscm3
 /**
  * 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();
 }