当前位置: 首页>>代码示例>>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;未经允许,请勿转载。