public function __construct($token) { if ($token) { $this->setInfo('token', $token); } parent::__construct(); }
public function __construct($plugin_key = null) { if ($plugin_key) { $this->setInfo('plugin_id', $plugin_key); } parent::__construct(); }
public function __construct($type = null, $name = null) { if ($type) { $this->setInfo('type', $type, true); } if ($name) { $this->setInfo('name', $name); } parent::__construct(); }
public function __construct($clientId, $clientSecret) { if ($clientId) { $this->setInfo('client_id', $clientId); } if ($clientSecret) { $this->setInfo('client_secret', $clientSecret); } parent::__construct(); }
public function __construct($userId, $token) { parent::__construct(); if ($userId) { $this->setInfo('userId', $userId); } if ($token) { $this->setInfo('token', $token); } }
public function __construct($type = null, $key = null) { if ($type) { $this->setInfo('type', $type, true); } if ($key) { $this->setInfo('key', $key, true); } parent::__construct(); }
public function __construct($_token = null) { parent::__construct(); if ($_token) { $token = explode('Bearer ', $_token); if (sizeof($token) > 1) { $this->setInfo('token', $token[1]); } else { $this->setInfo('token', $_token); } } }
public function __construct($file = null, $line = null, $message = null) { if ($file) { $this->setInfo('file', $file); } if ($line) { $this->setInfo('line', $line); } if ($message) { $this->setInfo('message', $message); } parent::__construct(); }
public function __construct($username, $passwordLength) { if ($username) { $this->setInfo('username', $username); } if ($passwordLength) { $hiddenPassword = ''; if ($passwordLength < 20) { for ($i = 0; $i < $passwordLength; $i++) { $hiddenPassword .= '*'; } } $this->setInfo('password', $hiddenPassword); } parent::__construct(); }
public function __construct($resourceType = null, $resourceKey = null, $username = null, $permission = null) { if ($username) { $this->setInfo('username', $username); } if ($resourceType) { $this->setInfo('resourceType', $resourceType); } if ($resourceKey) { $this->setInfo('resourceKey', $resourceKey); } if ($permission) { $this->setInfo('permission', $permission); } parent::__construct(); }
public function __construct($reason = null, $info = null, $errstring = null) { switch ($reason) { case 'url': $this->setInfo('reason', 'url', true); $this->setInfo('url', '"' . $info . '"'); break; case 'parse': $this->setInfo('reason', 'parse', true); $this->setInfo('line', $info, true); $this->setInfo('errstring', '"' . $errstring . '"', true); break; case 'field': $this->setInfo('reason', 'field', true); $this->setInfo('field', $info, true); $this->setInfo('errstring', '"' . $errstring . '"', true); break; } parent::__construct(); }
public function __construct(Request $request) { parent::__construct($request, ResponseCodes::HTTP_NOT_IMPLEMENTED, ResponseCodes::getMessageForCode(ResponseCodes::HTTP_NOT_IMPLEMENTED)); }
public function __construct($plugin_key, $username) { $this->setInfo('pluginKey', $plugin_key, true); $this->setInfo('username', $username, true); parent::__construct(); }
public function __construct($field) { $this->setInfo('field', $field, true); parent::__construct(); }
public function __construct() { parent::__construct(); }
public function __construct(Request $request, $methodsAllowed) { parent::__construct($request, ResponseCodes::HTTP_METHOD_NOT_ALLOWED, ResponseCodes::getMessageForCode(ResponseCodes::HTTP_METHOD_NOT_ALLOWED)); $this->addHeader('Allow: ' . implode(', ', $methodsAllowed)); }
public function __construct(Request $request) { parent::__construct($request, ResponseCodes::HTTP_FORBIDDEN, ResponseCodes::getMessageForCode(ResponseCodes::HTTP_FORBIDDEN)); }
public function __construct(Request $request) { parent::__construct($request, ResponseCodes::HTTP_INTERNAL_SERVER_ERROR, ResponseCodes::getMessageForCode(ResponseCodes::HTTP_INTERNAL_SERVER_ERROR)); }
public function __construct($scope) { $this->setInfo('scope', $scope, true); parent::__construct(); }
public function __construct(Request $request) { parent::__construct($request, ResponseCodes::HTTP_BAD_REQUEST, ResponseCodes::getMessageForCode(ResponseCodes::HTTP_BAD_REQUEST)); }