original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns all stored segments that are available to the given login.
  
  @param  string $userLogin
  @return array
docstring_tokens: Returns all stored segments that are available to the given login .