Example #1
0
File: API.php Project: techart/tao
 public function __construct($name)
 {
     $this->arg_name = (string) $name;
     parent::__construct("Access token not found for project: '{$this->arg_name}'.\n");
 }
Example #2
0
File: Core.php Project: techart/tao
 /**
  * @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})");
 }
Example #3
0
 public function __construct($controller, $action, $role)
 {
     parent::__construct("For the role '{$role}' access denied to controller '{$controller}' in action '{$action}'");
 }
Example #4
0
 /**
  */
 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);
 }
Example #5
0
 /**
  * Конструктор
  *
  * @param mixed $value значение константы
  */
 public function __construct($value)
 {
     parent::__construct("Bad constant value: {$value}");
 }
Example #6
0
 public function __construct()
 {
     parent::__construct("No accounts found for this user.\n");
 }
Example #7
0
 public function __construct()
 {
     parent::__construct("User account not found in session");
 }