/** * @param $name string * @param $value string XML */ public function user_set($name, $value = null) { switch ($name) { case BeeHub::PROP_EMAIL: if (filter_var($value, FILTER_VALIDATE_EMAIL) === false) { throw new DAV_Status(DAV::HTTP_BAD_REQUEST, 'Incorrect e-mail address format'); } break; } return parent::user_set($name, $value); }
public function user_set_description($description) { parent::user_set(BeeHub::PROP_DESCRIPTION, DAV::xmlunescape($description)); }