Beispiel #1
0
 public function __construct($field, $value, array $messages = array())
 {
     $data = array('field' => $field, 'value' => is_array($value) ? json_encode($value) : $value);
     parent::__construct(3, __METHOD__, __LINE__, $data);
     $this->message = $this->message . ' - ' . $this->getMessagesAsString($messages);
 }
 /**
  * @param int      $code
  * @param string   $method
  * @param string   $linenumber
  * @param UserData $user
  * @param array    $data
  * @param null     $exception
  * @param int      $httpResponseCode
  *
  * @internal param string $filename
  */
 public function __construct($code, $method = '', $linenumber = '', UserData $user, $data = array(), $exception = null, $httpResponseCode = 200)
 {
     parent::__construct($code, $method, $linenumber, $data, $exception, $httpResponseCode);
     $this->user = $user;
 }