protected function getAvailableSubscriptions() { $subscriptionList = new PaidSubscriptionList(); $subscriptionList->getConditionBuilder()->add('subscriptionID <> ?', array($this->subscriptionID)); $subscriptionList->sqlOrderBy = 'title'; $subscriptionList->readObjects(); $this->availableSubscriptions = $subscriptionList->getObjects(); }
/** * @see \wcf\system\cache\builder\AbstractCacheBuilder::rebuild() */ protected function rebuild(array $parameters) { $subscriptionList = new PaidSubscriptionList(); $subscriptionList->getConditionBuilder()->add('isDisabled = ?', array(0)); $subscriptionList->sqlOrderBy = 'showOrder'; $subscriptionList->readObjects(); return $subscriptionList->getObjects(); }
protected function getAvailableSubscriptions() { $subscriptionList = new PaidSubscriptionList(); $subscriptionList->sqlOrderBy = 'title'; $subscriptionList->readObjects(); $this->availableSubscriptions = $subscriptionList->getObjects(); }