• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Utilities\ArrayUtil类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: __construct

 /**
  * @param   array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->featureId = AU::get($data['featureId']);
         $this->value = AU::get($data['value']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:10,代码来源:CreateVehicleFeatureRequest.php


示例2: __construct

 /**
  * @param   array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->vendorId = AU::get($data['vendorId']);
         $this->userId = AU::get($data['userId']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:10,代码来源:CreateVendorInviteRequest.php


示例3: __construct

 /**
  * @param   array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->id = AU::get($data['id']);
         $this->name = AU::get($data['name']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:10,代码来源:FuelType.php


示例4: __construct

 /**
  * @param   array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->currentPassword = AU::get($data['currentPassword']);
         $this->newPassword = AU::get($data['newPassword']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:10,代码来源:UpdatePasswordRequest.php


示例5: __construct

 /**
  * @param   array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->freeMiles = AU::get($data['freeMiles']);
         $this->mileageFee = AU::get($data['mileageFee']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:10,代码来源:CreateFixedMileageFeeRequest.php


示例6: __construct

 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->limit = AU::get($data['limit'], 80);
         $this->page = AU::get($data['page'], 1);
     }
 }
开发者ID:turboship,项目名称:locations-php,代码行数:7,代码来源:BasePaginatableRequest.php


示例7: __construct

 /**
  * CreateUserInvite constructor.
  * @param   array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->firstName = AU::get($data['firstName']);
         $this->lastName = AU::get($data['lastName']);
         $this->email = AU::get($data['email']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:12,代码来源:CreateUserInviteRequest.php


示例8: __construct

 public function __construct($data)
 {
     $data = AU::get($data['AddressValidateResponse']);
     $addresses = AU::isArrays($data['Address']) ? $data['Address'] : [$data['Address']];
     foreach ($addresses as $item) {
         $this->addItem(new AddressVerifyResponseItem($item));
     }
 }
开发者ID:jamesvweston,项目名称:usps-php,代码行数:8,代码来源:AddressVerifyResponse.php


示例9: __construct

 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->minimumDays = AU::get($data['minimumDays']);
         $this->percentDiscount = AU::get($data['percentDiscount']);
         $this->rentalId = AU::get($data['rentalId']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:8,代码来源:CreateDurationDiscountRequest.php


示例10: __construct

 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->id = AU::get($data['id']);
         $this->setPostalDistrict(AU::get($data['postalDistrict']));
         $this->setSubdivision(AU::get($data['subdivision']));
     }
 }
开发者ID:turboship,项目名称:locations-php,代码行数:8,代码来源:PostalDistrictSubdivision.php


示例11: __construct

 public function __construct($data = null)
 {
     parent::__construct($data);
     if (is_array($data)) {
         $this->ids = AU::get($data['ids']);
         $this->names = AU::get($data['names']);
     }
 }
开发者ID:turboship,项目名称:locations-php,代码行数:8,代码来源:GetSubdivisionTypesRequest.php


示例12: __construct

 /**
  * @param   array|null      $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->date = AU::get($data['date']);
         $this->timeZoneType = AU::get($data['timezone_type'], AU::get($data['timeZoneType']));
         $this->timeZone = AU::get($data['timezone'], AU::get($data['timeZone']));
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:11,代码来源:DateTime.php


示例13: __construct

 /**
  * AccessTokenResponse constructor.
  * @param array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->access_token = AU::get($data['access_token']);
         $this->token_type = AU::get($data['token_type']);
         $this->expires_in = AU::get($data['expires_in']);
     }
 }
开发者ID:turboship,项目名称:api-php,代码行数:12,代码来源:CreateAccessTokenResponse.php


示例14: __construct

 /**
  * @param   array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->vendorId = AU::get($data['vendorId']);
         $this->startDate = AU::get($data['startDate']);
         $this->endDate = AU::get($data['endDate']);
         $this->name = AU::get($data['name']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:12,代码来源:CreateSeasonRequest.php


示例15: __construct

 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->id = AU::get($data['id']);
         $this->name = AU::get($data['name']);
         $this->iso2 = AU::get($data['iso2']);
         $this->setContinent(AU::get($data['continent']));
     }
 }
开发者ID:turboship,项目名称:locations-php,代码行数:9,代码来源:Country.php


示例16: __construct

 /**
  * @param   array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->name = AU::get($data['name']);
         $this->ownerId = AU::get($data['ownerId']);
         $this->bookingPolicyId = AU::get($data['bookingPolicyId']);
         $this->cancellationPolicyId = AU::get($data['cancellationPolicyId']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:12,代码来源:CreateVendorRequest.php


示例17: __construct

 /**
  * @param   array   $data
  */
 public function __construct($data)
 {
     $data = AU::get($data['CityStateLookupResponse'], []);
     $zipCodes = AU::get($data['ZipCode'], []);
     $zipCodes = AU::isArrays($zipCodes) ? $zipCodes : [$zipCodes];
     foreach ($zipCodes as $item) {
         $this->items[] = new CityStateLookupResponseItem($item);
     }
 }
开发者ID:jamesvweston,项目名称:usps-php,代码行数:12,代码来源:CityStateLookupResponse.php


示例18: __construct

 /**
  * CreateOAuthClientRequest constructor.
  * @param   array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->id = AU::get($data['id']);
         $this->secret = AU::get($data['secret']);
         $this->accountId = AU::get($data['accountId']);
         $this->oAuthScopeIds = AU::get($data['oAuthScopeIds']);
     }
 }
开发者ID:turboship,项目名称:auth-php,代码行数:13,代码来源:CreateOAuthClientRequest.php


示例19: __construct

 /**
  * @param   array   $data
  */
 public function __construct($data)
 {
     $data = AU::get($data['ZipCodeLookupResponse'], []);
     $addresses = AU::get($data['Address'], []);
     $addresses = AU::isArrays($addresses) ? $addresses : [$addresses];
     foreach ($addresses as $item) {
         $this->items[] = new ZipCodeLookupResponseItem($item);
     }
 }
开发者ID:jamesvweston,项目名称:usps-php,代码行数:12,代码来源:ZipCodeLookupResponse.php


示例20: __construct

 /**
  * @param   array|null $data
  */
 public function __construct($data = null)
 {
     if (is_array($data)) {
         $this->rentalId = AU::get($data['rentalId']);
         $this->seasonId = AU::get($data['seasonId']);
         $this->dailyRate = AU::get($data['dailyRate']);
         $this->applyDurationDiscount = AU::get($data['applyDurationDiscount']);
     }
 }
开发者ID:caravanarentals,项目名称:php-wrapper,代码行数:12,代码来源:CreateSeasonalRateRequest.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Date\Date类代码示例发布时间:2022-05-23
下一篇:
PHP Isotope\Isotope类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap