/** * @param array $config * @param null $user */ public function __construct($config = [], $user = null) { if (null !== $user) { $this->user = $user; } parent::__construct($config); }
/** * */ public function __construct() { parent::__construct(); $this->friendslistQuery = FriendQuery::getFriendListQuery(); $this->eventslistQuery = EventsQuery::getEventsListQuery(); }
/** * */ public function __construct() { parent::__construct(); }
/** * */ public function __construct() { parent::__construct(); $this->friendslistQuery = new \Zend_Db_Expr($this->getAdapter()->select()->from($this->_dbprefix . "relations", new \Zend_Db_Expr("(CASE WHEN sender = " . $_SESSION['user']->userid . " THEN receiver WHEN receiver = " . $_SESSION['user']->userid . " THEN sender END)"))->where("status > 0")->where("sender=?", $_SESSION['user']->userid)->orWhere("receiver=?", $_SESSION['user']->userid)); }