コード例 #1
0
ファイル: topic.php プロジェクト: giabmf11/Kunena-Forum
 /**
  * Method to load a KunenaForumTopic object by id.
  *
  * @param null $id	The topic id to be loaded.
  *
  * @return bool	True on success.
  */
 public function load($id = null)
 {
     $exists = parent::load($id);
     $this->_hold = $this->hold === null ? 1 : $this->hold;
     $this->_posts = $this->posts;
     return $exists;
 }
コード例 #2
0
ファイル: category.php プロジェクト: densem-2013/exikom
 /**
  * @see KunenaDatabaseObject::load()
  *
  * @param null $id
  *
  * @return bool
  */
 public function load($id = null)
 {
     $exists = parent::load($id);
     if (!$this->_saving) {
         $this->_alias = $this->get('alias', '');
     }
     $registry = new JRegistry();
     if ($this->params) {
         $registry->loadString($this->params);
     }
     $this->params = $registry;
     // Register category if it exists
     if ($exists) {
         KunenaForumCategoryHelper::register($this);
     }
     return $exists;
 }
コード例 #3
0
ファイル: message.php プロジェクト: giabmf11/Kunena-Forum
 /**
  * Method to load a KunenaForumMessage object by id.
  *
  * @param mixed $id	The message id to be loaded
  *
  * @return bool	True on success
  */
 public function load($id = null)
 {
     $exists = parent::load($id);
     $this->_hold = $exists ? $this->hold : 1;
     $this->_thread = $this->thread;
     return $exists;
 }
コード例 #4
0
ファイル: category.php プロジェクト: GoremanX/Kunena-2.0
	/**
	 * (non-PHPdoc)
	 * @see KunenaDatabaseObject::load()
	 */
	public function load($id = null) {
		$exists = parent::load($id);

		// Register category if it exists
		if ($exists) KunenaForumCategoryHelper::register($this);
		return $exists;
	}