Пример #1
0
 /**
  * @param array $config
  * @param null $user
  */
 public function __construct($config = [], $user = null)
 {
     if (null !== $user) {
         $this->user = $user;
     }
     parent::__construct($config);
 }
Пример #2
0
 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->friendslistQuery = FriendQuery::getFriendListQuery();
     $this->eventslistQuery = EventsQuery::getEventsListQuery();
 }
Пример #3
0
 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
 }
Пример #4
0
 /**
  *
  */
 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));
 }