public function getAllSegments($userLogin)
    {
        $bind = array($userLogin);
        $sql  = $this->buildQuerySortedByName('deleted = 0 AND (enable_all_users = 1 OR login = ?)');

        $segments = $this->getDb()->fetchAll($sql, $bind);

        return $segments;
    }
public function getAllSegments($userLogin)
    {
        $bind = array($userLogin);
        $sql  = $this->buildQuerySortedByName('deleted = 0 AND (enable_all_users = 1 OR login = ?)');

        $segments = $this->getDb()->fetchAll($sql, $bind);

        return $segments;
    }
public function getAllSegments ( $ userLogin ) { $ bind = array ( $ userLogin ) ; $ sql = $ this -> buildQuerySortedByName ( 'deleted = 0 AND (enable_all_users = 1 OR login = ?)' ) ; $ segments = $ this -> getDb ( ) -> fetchAll ( $ sql , $ bind ) ; return $ segments ; }
Returns all stored segments that are available to the given login.

@param  string $userLogin
@return array
Returns all stored segments that are available to the given login .