当前位置: 首页>>代码示例>>PHP>>正文


PHP Request\AbstractRequest类代码示例

本文整理汇总了PHP中Wubs\Trakt\Request\AbstractRequest的典型用法代码示例。如果您正苦于以下问题:PHP AbstractRequest类的具体用法?PHP AbstractRequest怎么用?PHP AbstractRequest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了AbstractRequest类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * @param int $mediaId
  * @param int $season
  * @param int $episode
  */
 public function __construct($mediaId, $season, $episode)
 {
     parent::__construct();
     $this->id = $mediaId;
     $this->episode = $episode;
     $this->season = $season;
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:12,代码来源:Summary.php

示例2: __construct

 /**
  * @param AccessToken $token
  * @param $username
  * @param array $list
  */
 public function __construct(AccessToken $token, $username, $list)
 {
     parent::__construct();
     $this->setToken($token);
     $this->list = $list;
     $this->username = $username;
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:12,代码来源:Create.php

示例3: __construct

 /**
  * @param string $username
  * @param null $listId
  * @param AccessToken|null $token
  */
 public function __construct($username, $listId = null, AccessToken $token = null)
 {
     parent::__construct();
     $this->setToken($token);
     $this->username = $username;
     $this->listId = $listId;
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:12,代码来源:Get.php

示例4: __construct

 /**
  * @param AccessToken $token
  * @param $type
  * @param null $rating
  */
 public function __construct(AccessToken $token, $type, $rating = null)
 {
     parent::__construct();
     $this->setToken($token);
     $this->rating = $rating;
     $this->type = $type;
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:12,代码来源:Get.php

示例5: __construct

 /**
  * @param AccessToken $token
  * @param $commentId
  */
 public function __construct(AccessToken $token, $commentId)
 {
     parent::__construct();
     $this->commentId = $commentId;
     $this->setToken($token);
     $this->setResponseHandler(new DefaultDeleteHandler());
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:11,代码来源:Delete.php

示例6: __construct

 /**
  * @param AccessToken $token
  * @param $type
  * @param $id
  */
 public function __construct(AccessToken $token, $type, $id = null)
 {
     parent::__construct();
     $this->setToken($token);
     $this->id = $id;
     $this->type = $type;
 }
开发者ID:kduma-archive,项目名称:trakt-api-wrapper,代码行数:12,代码来源:Get.php

示例7: __construct

 public function __construct(AccessToken $accessToken, Carbon $startDate = null, $days = null)
 {
     parent::__construct();
     $this->setStartDate($startDate);
     $this->setDays($days);
     $this->setToken($accessToken);
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:7,代码来源:Movies.php

示例8: __construct

 /**
  * @param AccessToken $token
  * @param $username
  * @param $type
  */
 public function __construct($username, $type, AccessToken $token = null)
 {
     parent::__construct();
     $this->setToken($token);
     $this->type = $type;
     $this->username = $username;
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:12,代码来源:Collection.php

示例9: __construct

 /**
  * @param AccessToken $token
  * @param $section
  * @param $type
  */
 public function __construct(AccessToken $token, $section, $type)
 {
     parent::__construct();
     $this->setToken($token);
     $this->section = $section;
     $this->type = $type;
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:12,代码来源:Hidden.php

示例10: __construct

 /**
  * @param AccessToken $accessToken
  * @param Carbon $startDate
  * @param $days
  */
 public function __construct(AccessToken $accessToken, Carbon $startDate = null, $days = null)
 {
     parent::__construct();
     $this->setDays($days);
     $this->setStartDate($startDate);
     //        $this->setResponseHandler(new ShowsResponse());
     $this->setToken($accessToken);
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:13,代码来源:Premieres.php

示例11: formatUri

 /**
  * Formats the uri, it replaces the parameters with the values it has retrieved from
  * the request object.
  *
  * @param $values
  * @return mixed
  */
 private function formatUri($values)
 {
     $uri = $this->request->getUri();
     foreach ($values as $parameter => $value) {
         $uri = str_replace(":" . $parameter, $value, $uri);
     }
     return $uri;
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:15,代码来源:UriBuilder.php

示例12: __construct

 /**
  * @param AccessToken $token
  * @param $username
  * @param $listId
  * @param $itemsToRemove
  */
 public function __construct(AccessToken $token, $username, $listId, $itemsToRemove)
 {
     parent::__construct();
     $this->setToken($token);
     $this->itemsToRemove = $itemsToRemove;
     $this->listId = $listId;
     $this->username = $username;
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:14,代码来源:Remove.php

示例13: __construct

 /**
  * @param AccessToken $token
  * @param $username
  * @param $id
  * @param array $updates
  */
 public function __construct(AccessToken $token, $username, $id, $updates)
 {
     parent::__construct();
     $this->setToken($token);
     $this->id = $id;
     $this->username = $username;
     $this->updates = $updates;
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:14,代码来源:Update.php

示例14: __construct

 /**
  * @param string $idType
  * @param $mediaId
  */
 public function __construct($idType, $mediaId, AccessToken $token = null)
 {
     parent::__construct();
     $this->setQueryParams(["id_type" => $idType, "id" => $mediaId]);
     if ($token !== null) {
         $this->setToken($token);
     }
     $this->setResponseHandler(new SearchHandler());
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:13,代码来源:ById.php

示例15: __construct

 /**
  * @param Media $media
  * @param $comment
  * @param $spoiler
  * @throws CommentTooShortException
  */
 public function __construct(Media $media, $comment, $spoiler = false)
 {
     parent::__construct();
     $this->comment = $comment;
     $this->media = $media;
     $this->spoiler = $spoiler;
     if ($this->commentIsNotAllowedSize()) {
         throw new CommentTooShortException();
     }
 }
开发者ID:ValentinGot,项目名称:trakt-api-wrapper,代码行数:16,代码来源:Create.php


注:本文中的Wubs\Trakt\Request\AbstractRequest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。