コード例 #1
0
ファイル: Upload.php プロジェクト: bradykurtz/aTaxAccounting
 function __construct()
 {
     parent::__construct();
     $this->authorize(false, 'ADMIN', 'CLIENT');
     $this->httpStatus = APIController::HTTP_INTERNAL_SERVER_ERROR;
     $this->responseObj = array($this->config->item('rest_message_field_name') => null);
 }
コード例 #2
0
 function __construct()
 {
     parent::__construct();
     $this->authorize(true, 'ADMIN');
     $this->httpStatus = APIController::HTTP_UNAUTHORIZED;
     $this->responseObj = array($this->config->item('rest_message_field_name') => null);
 }
コード例 #3
0
 function __construct()
 {
     parent::__construct();
     $dsn = 'mysql:host=' . MYSQL_SERVER . ';dbname=' . MYSQL_DB . ';charset=utf8';
     $this->storage = new \API\Middleware\SSCOauthStoragePDO(array('dsn' => $dsn, 'username' => MYSQL_USER, 'password' => MYSQL_PW));
     $this->server = new \OAuth2_Server($this->storage);
     $this->server->addGrantType(new \API\Middleware\SSC_OAuth2_GrantType_UserCredentials($this->storage));
     $this->server->addGrantType(new \API\Middleware\SSC_OAuth2_GrantType_ClientCredentials($this->storage));
 }
コード例 #4
0
 public function __construct($appName, IRequest $request, Folder $userFolder)
 {
     parent::__construct($appName, $request);
     $this->userFolder = $userFolder;
 }
コード例 #5
0
ファイル: API.php プロジェクト: laiello/phphelium
 function __construct($merge = false)
 {
     parent::__construct($merge);
 }
コード例 #6
0
ファイル: Login.php プロジェクト: bradykurtz/aTaxAccounting
 function __construct()
 {
     parent::__construct();
     $this->httpStatus = APIController::HTTP_UNAUTHORIZED;
     $this->responseObj = array($this->config->item('rest_message_field_name') => null, 'loggedIn' => false);
 }
コード例 #7
0
 function __construct()
 {
     parent::__construct();
 }