public function get($d_id = 0)
 {
     $department = parent::get($d_id);
     if ($department) {
         $department['ldap_groups'] = $this->get_ldap_groups($d_id);
     }
     return $department;
 }
示例#2
0
 public function insert($data = array())
 {
     $data['l_s_id'] = $this->_s_id;
     return parent::insert($data);
 }
示例#3
0
 function __construct()
 {
     parent::__construct();
 }
示例#4
0
 /**
  * Add a role to the database
  *
  * @param array $data       Array of data for the role
  * @return bool
  */
 function insert($data = array())
 {
     // Get weight for new role
     $data['r_weight'] = $this->get_weight('max') + 1;
     return parent::insert($data);
 }