Beispiel #1
0
 protected function _lookup()
 {
     // Do we already have the result?
     if ($this->result instanceof Result) {
         return $this->result;
     }
     // Get the data from the directory server
     $task = new Task(static::$operation, $this->link);
     $task->filter($this->query);
     static::$attributes && $task->attributes(static::$attributes);
     static::$base && $task->base(static::$base);
     $result = static::$paged_search ? $task->run_paged(static::$sizelimit) : $task->run();
     // Process the result and return the data!
     return $this->_process_result($result);
 }