public function __construct($name) { $this->arg_name = (string) $name; parent::__construct("Access token not found for project: '{$this->arg_name}'.\n"); }
/** * @param string $name * @param $value */ public function __construct($name, $value) { $this->arg_name = (string) $name; $this->arg_value = $value; parent::__construct("Invalid argument value for '{$this->arg_name}': ({$this->arg_value})"); }
public function __construct($controller, $action, $role) { parent::__construct("For the role '{$role}' access denied to controller '{$controller}' in action '{$action}'"); }
/** */ public function __construct($message = '', $code = null) { $res = explode('@', trim($message, '[] ')); if (count($res) > 1) { $type_reason = explode('.', $res[0]); $this->type = trim($type_reason[0]); $this->reason = trim($type_reason[1]); $attrs = explode(';', $res[1]); if (isset($attrs[0])) { $this->attrs['operand'] = $attrs[0]; } unset($attrs[0]); foreach ($attrs as $a) { $name_value = explode(':', $a); switch (count($name_value)) { case 1: $this->attrs[] = trim($a); break; case 2: $this->attrs[trim($name_value[0])] = trim($name_value[1]); default: $name = trim($name_value[0]); unset($name_value[0]); $this->attrs[$name] = implode(':', $name_value); } } } parent::__construct($message, $code); }
/** * Конструктор * * @param mixed $value значение константы */ public function __construct($value) { parent::__construct("Bad constant value: {$value}"); }
public function __construct() { parent::__construct("No accounts found for this user.\n"); }
public function __construct() { parent::__construct("User account not found in session"); }