Changeset 2d3e2bc in github for program/include/rcube_ldap.php


Ignore:
Timestamp:
Sep 21, 2011 7:17:46 AM (20 months ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.7, release-0.8
Children:
7f03884
Parents:
c054ec5
Message:

Add option 'searchonly' for address books; currently used by LDAP directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_ldap.php

    r015decf r2d3e2bc  
    7272    { 
    7373        $this->prop = $p; 
     74         
     75        if (isset($p['searchonly'])) 
     76            $this->searchonly = $p['searchonly']; 
    7477 
    7578        // check if groups are configured 
     
    430433    function list_records($cols=null, $subset=0) 
    431434    { 
     435        if ($this->prop['searchonly'] && empty($this->filter) && !$this->group_id) { 
     436            $this->result = new rcube_result_set(0); 
     437            $this->result->searchonly = true; 
     438            return $this->result; 
     439        } 
     440         
    432441        // add general filter to query 
    433442        if (!empty($this->prop['filter']) && empty($this->filter)) 
Note: See TracChangeset for help on using the changeset viewer.