Guest User

Untitled

a guest
Apr 18th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1.    /**
  2.     * @param int advisors id
  3.     * @return array
  4.     * @final
  5.     */
  6.     final public function getClients($advisors = null) {
  7.         $fluent = $this->db->select("id, CONCAT_WS(' ', id, titul, prijmeni, jmeno) AS klient")->from(self::clientsTable);
  8.         if($advisors != null)
  9.             $fluent->where('poradce = %i', $advisors);  
  10.         return $fluent->OrderBy('zalozen DESC')->fetchPairs('id', 'klient');            
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment