Lines Matching defs:attributes
62 * @param array $attributes The attributes to set to the contact
65 public function create($attributes)
68 if (!array_key_exists("display_name", $attributes)) { return "Missing compulsory field [display_name]"; }
69 if (!array_key_exists("email", $attributes)) { return "Missing compulsory field [email]"; }
70 if (!array_key_exists("container", $attributes)) { return "Missing compulsory field [container]"; }
71 if (!is_array($attributes["container"])) { return "Container attribute must be an array."; }
74 $add = $this->adldap->adldap_schema($attributes);
77 $add["cn"][0] = $attributes["display_name"];
82 if (!isset($attributes['exchange_hidefromlists'])) {
87 $attributes["container"] = array_reverse($attributes["container"]);
88 $container= "OU=" . implode(",OU=", $attributes["container"]);
210 * @param array $attributes The attributes to modify. Note if you set the enabled attribute you must not specify any other attributes
213 public function modify($distinguishedName, $attributes) {
217 $mod = $this->adldap->adldap_schema($attributes);