Esempio n. 1
0
	/**
	 * @see	wcf\page\MultipleLinkPage::initObjectList()
	 */
	public function initObjectList() {
		parent::initObjectList();
		
		$this->objectList->sqlSelects = "(SELECT COUNT(*) FROM wcf".WCF_N."_user WHERE styleID = style.styleID) AS users";
	}
Esempio n. 2
0
 /**
  * @see	\wcf\page\MultipleLinkPage::initObjectList()
  */
 protected function initObjectList()
 {
     parent::initObjectList();
     if ($this->categoryID) {
         $this->objectList->getConditionBuilder()->add('categoryID = ?', array($this->categoryID));
     } else {
         $this->objectList->getConditionBuilder()->add('categoryID IS NULL', array());
     }
 }
Esempio n. 3
0
 /**
  * @see	\wcf\page\MultipleLinkPage::readData()
  */
 protected function initObjectList()
 {
     parent::initObjectList();
     $this->objectList->getConditionBuilder()->add("user_follow.userID = ?", array(WCF::getUser()->userID));
 }
 /**
  * @see	\wcf\page\MultipleLinkPage::initObjectList()
  */
 protected function initObjectList()
 {
     if ($this->categoryID) {
         $this->objectList = new NewsCategoryList(array($this->categoryID));
     } else {
         if (NEWS_INDEX_CATEGORIES) {
             $categoryIDs = array_intersect(explode("\n", NEWS_INDEX_CATEGORIES), NewsCategory::getAccessibleCategoryIDs());
             $this->objectList = new NewsCategoryList($categoryIDs);
         } else {
             parent::initObjectList();
             if ($this->user) {
                 $this->objectList->getConditionBuilder()->add('news.userID = ?', array($this->user->userID));
             }
         }
     }
     // exclude archives news from overview.
     $this->objectList->getConditionBuilder()->add('news.isArchived = 0');
     if (!empty($this->letter)) {
         if ($this->letter == '#') {
             $this->objectList->getConditionBuilder()->add("SUBSTRING(news.subject,1,1) IN ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')");
         } else {
             $this->objectList->getConditionBuilder()->add("news.subject LIKE ?", array($this->letter . '%'));
         }
     }
 }
 /**
  * @see	\wcf\page\MultipleLinkPage::initObjectList()
  */
 protected function initObjectList()
 {
     if ($this->categoryID) {
         $this->objectList = new CategoryEntryList(array($this->categoryID));
     } else {
         parent::initObjectList();
         if ($this->user) {
             $this->objectList->getConditionBuilder()->add('news_entry.userID = ?', array($this->user->userID));
         }
     }
     // exclude archives news from overview.
     $this->objectList->getConditionBuilder()->add('news_entry.isArchived = 0');
     if (!empty($this->letter)) {
         if ($this->letter == '#') {
             $this->objectList->getConditionBuilder()->add("SUBSTRING(news_entry.subject,1,1) IN ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')");
         } else {
             $this->objectList->getConditionBuilder()->add("news_entry.subject LIKE ?", array($this->letter . '%'));
         }
     }
 }
 /**
  * @see	\wcf\page\MultipleLinkPage::initObjectList()
  */
 protected function initObjectList()
 {
     parent::initObjectList();
     $this->objectList->getConditionBuilder()->add('conversation_message.conversationID = ?', array($this->conversation->conversationID));
     $this->objectList->setConversation($this->conversation->getDecoratedObject());
     // handle jump to
     if ($this->action == 'lastPost') {
         $this->goToLastPost();
     }
     if ($this->action == 'firstNew') {
         $this->goToFirstNewPost();
     }
     if ($this->messageID) {
         $this->goToPost();
     }
 }