當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Fluent::__construct方法代碼示例

本文整理匯總了PHP中Illuminate\Support\Fluent::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Fluent::__construct方法的具體用法?PHP Fluent::__construct怎麽用?PHP Fluent::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Support\Fluent的用法示例。


在下文中一共展示了Fluent::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($fileinfo)
 {
     if ($fileinfo instanceof SplFileInfo === false) {
         $fileinfo = new SplFileInfo($fileinfo);
     }
     parent::__construct($this->parseFileInfo($fileinfo));
     $this->fileinfo = $fileinfo;
 }
開發者ID:recca0120,項目名稱:laravel-support,代碼行數:8,代碼來源:Fluent.php

示例2: __construct

 public function __construct($data)
 {
     $steamID = isset($data['steamid']) ? $data['steamid'] : null;
     unset($data['steamid']);
     parent::__construct($data);
     $this->attributes['steamID64'] = $steamID;
     $this->attributes['steamID'] = $this->getSteamID($steamID);
 }
開發者ID:invisnik,項目名稱:laravel-steam-auth,代碼行數:8,代碼來源:SteamInfo.php

示例3: __construct

 /**
  * Sets attributes from response xml.
  *
  * @param ResponseInterface $response
  * @param array $attributes
  */
 public function __construct(ResponseInterface $response, array $attributes = null)
 {
     $this->response = $response;
     if (is_null($attributes)) {
         $attributes = Xml::elementsToArray($response->xml()->xpath('/RESPONSE/FIELDS/*'));
     }
     parent::__construct($attributes);
 }
開發者ID:RDelorier,項目名稱:first-americam-xml,代碼行數:14,代碼來源:Response.php

示例4: __construct

 /**
  * {@inheritdoc}
  */
 public function __construct($attributes)
 {
     // Default attributes
     if (is_string($attributes)) {
         $attributes = ['command' => $attributes, 'status' => null, 'output' => null, 'done' => false];
     }
     parent::__construct($attributes);
     $this->sanitized = $this->sanitizeCommand($this->command);
 }
開發者ID:anahkiasen,項目名稱:sadness-deployer,代碼行數:12,代碼來源:Command.php

示例5: __construct

 /**
  * Theme constructor.
  *
  * @param string $name
  * @param string $theme
  * @param string $type
  * @param string $version
  * @param string $description
  * @param array $positions
  * @param array|object $attributes
  */
 public function __construct($name, $theme, $type, $version, $description, array $positions, $attributes = [])
 {
     $this->name = $name;
     $this->theme = $theme;
     $this->type = $type;
     $this->version = $version;
     $this->description = $description;
     $this->positions = $positions;
     parent::__construct($attributes);
 }
開發者ID:yajra,項目名稱:cms-themes,代碼行數:21,代碼來源:Theme.php

示例6: __construct

 /**
  * FluentParameters constructor.
  *
  * @param array|object $attributes
  */
 public function __construct($attributes)
 {
     parent::__construct($attributes);
     if (isset($attributes['templates']) && is_array($attributes['templates'])) {
         $templates = new Collection();
         foreach ($attributes['templates'] as $template) {
             $templates->push(new Fluent($template));
         }
         $this->templates = $templates;
     }
 }
開發者ID:yajra,項目名稱:cms-core,代碼行數:16,代碼來源:FluentParameters.php

示例7: __construct

 /**
  * @param array $attributes
  */
 public function __construct($attributes = [])
 {
     $attributes['orderable'] = isset($attributes['orderable']) ? $attributes['orderable'] : true;
     $attributes['searchable'] = isset($attributes['searchable']) ? $attributes['searchable'] : true;
     // Allow methods override attribute value
     foreach ($attributes as $attribute => $value) {
         $method = 'parse' . ucfirst(strtolower($attribute));
         if (method_exists($this, $method)) {
             $attributes[$attribute] = $this->{$method}($value);
         }
     }
     parent::__construct($attributes);
 }
開發者ID:mauroartizzu,項目名稱:laravel-datatables,代碼行數:16,代碼來源:Column.php

示例8: __construct

 /**
  * @param SelfSMSProvider $provider Base provider
  * @param array $options Preset options
  */
 public function __construct(SelfSMSProvider $provider, $options = [])
 {
     parent::__construct($options);
     $this->provider = $provider;
 }
開發者ID:ArAcNiDe,項目名稱:laravel-selfsms,代碼行數:9,代碼來源:Message.php

示例9: __construct

 /**
  * Status constructor
  *
  * @param ResultInterface $result Result instance
  * @param array $status Status array
  */
 public function __construct(ResultInterface $result, array $status)
 {
     $this->setResult($result);
     parent::__construct($status);
 }
開發者ID:endyjasmi,項目名稱:neo4j,代碼行數:11,代碼來源:Status.php

示例10: __construct

 /**
  * @param array $attributes
  */
 public function __construct($attributes = [])
 {
     $attributes['orderable'] = isset($attributes['orderable']) ? $attributes['orderable'] : true;
     $attributes['searchable'] = isset($attributes['searchable']) ? $attributes['searchable'] : true;
     parent::__construct($attributes);
 }
開發者ID:thesaputra,項目名稱:xyz-prx,代碼行數:9,代碼來源:Column.php

示例11: __construct

 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
 }
開發者ID:illuminate3,項目名稱:larastaller,代碼行數:4,代碼來源:Field.php

示例12: __construct

 /**
  * Constructor
  *
  * @param array $attributes attributes
  */
 public function __construct($attributes = [])
 {
     parent::__construct($attributes);
     $this->syncOriginal();
 }
開發者ID:xpressengine,項目名稱:xpressengine,代碼行數:10,代碼來源:Entity.php

示例13: __construct

 public function __construct($attributes = [])
 {
     if ($attributes !== null) {
         parent::__construct($attributes);
     }
 }
開發者ID:BibleBowl,項目名稱:account,代碼行數:6,代碼來源:Settings.php

示例14: __construct

 /**
  * BaseWidget constructor.
  *
  * @param $id
  */
 public function __construct($id, $attr = [])
 {
     parent::__construct($attr);
     $this->id = $id;
 }
開發者ID:codexproject,項目名稱:core,代碼行數:10,代碼來源:Item.php

示例15: __construct

 public function __construct(ApiClient $client, Payload $payload)
 {
     $this->client = $client;
     parent::__construct($payload->getData());
 }
開發者ID:dangreaves,項目名稱:slackbot,代碼行數:5,代碼來源:Event.php


注:本文中的Illuminate\Support\Fluent::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。