Ignore:
Timestamp:
05/07/07 15:06:04 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.functions.inc.php

    r19 r23  
    344344                */ 
    345345                 
    346                 function get_organizations($context, $selected='') 
     346                /* 
     347                function get_organizations($context, $selected='', $show_invisible_ou=false) 
    347348                { 
    348349                        $dn                     = $GLOBALS['phpgw_info']['server']['ldap_root_dn']; 
     
    355356                         
    356357                        $justthese = array("dn"); 
    357                         $search=ldap_search($ldap_conn, $context, "ou=*", $justthese); 
     358                        $filter = $show_invisible_ou ? "(ou=*)" : "(& (ou=*) (!(phpgwAccountVisible=-1)) )"; 
     359                        $search=ldap_search($ldap_conn, $context, $filter, $justthese); 
    358360                 
    359361                ldap_sort($ldap_conn, $search, "ou"); 
     
    418420            return $options; 
    419421                } 
     422                */ 
     423                 
     424                function get_organizations($context, $selected='') 
     425                { 
     426                        $s = CreateObject('phpgwapi.sector_search_ldap'); 
     427                        $sectors_info = $s->get_organizations($context, $selected, false, false); 
     428                        return $sectors_info; 
     429                }                
    420430                 
    421431                function get_sectors($context, $selected='') 
Note: See TracChangeset for help on using the changeset viewer.