public function get($d_id = 0) { $department = parent::get($d_id); if ($department) { $department['ldap_groups'] = $this->get_ldap_groups($d_id); } return $department; }
public function insert($data = array()) { $data['l_s_id'] = $this->_s_id; return parent::insert($data); }
function __construct() { parent::__construct(); }
/** * 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); }