예제 #1
0
파일: Group.php 프로젝트: phpCedu/kanboard
 /**
  * Find groups
  *
  * @access public
  * @param  string    $query
  * @return array
  */
 public function find($query)
 {
     $this->query->execute($this->getBasDn(), $query, $this->getAttributes());
     $groups = array();
     if ($this->query->hasResult()) {
         $groups = $this->build();
     }
     return $groups;
 }
예제 #2
0
 /**
  * Find user
  *
  * @access public
  * @param  string    $query
  * @return LdapUserProvider
  */
 public function find($query)
 {
     $this->query->execute($this->getBasDn(), $query, $this->getAttributes());
     $user = null;
     if ($this->query->hasResult()) {
         $user = $this->build();
     }
     return $user;
 }