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


PHP Fluent::getAttributes方法代码示例

本文整理汇总了PHP中Illuminate\Support\Fluent::getAttributes方法的典型用法代码示例。如果您正苦于以下问题:PHP Fluent::getAttributes方法的具体用法?PHP Fluent::getAttributes怎么用?PHP Fluent::getAttributes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Illuminate\Support\Fluent的用法示例。


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

示例1: migrationHasSucceed

 /**
  * Response when extension migration has succeed.
  *
  * @param  \Illuminate\Support\Fluent $extension
  *
  * @return mixed
  */
 public function migrationHasSucceed(Fluent $extension)
 {
     $message = trans('orchestra/foundation::response.extensions.migrate', $extension->getAttributes());
     return $this->redirectWithMessage(handles('orchestra::extensions'), $message);
 }
开发者ID:stevebauman,项目名称:foundation,代码行数:12,代码来源:ActionController.php

示例2: runValidationEvents

 /**
  * Run validation events and return the finalize rules and phrases.
  *
  * @param  array|string  $events
  * @param  array  $phrases
  *
  * @return array
  */
 protected function runValidationEvents($events, array $phrases)
 {
     is_array($events) || ($events = (array) $events);
     // Merge all the events.
     $events = array_merge($this->getValidationEvents(), $events);
     // Convert rules array to Fluent, in order to pass it by references
     // in all event listening to this validation.
     $rules = new Fluent($this->getBindedRules());
     $phrases = new Fluent(array_merge($this->getValidationPhrases(), $phrases));
     foreach ((array) $events as $event) {
         $this->validationDispatcher->fire($event, [&$rules, &$phrases]);
     }
     return [$rules->getAttributes(), $phrases->getAttributes()];
 }
开发者ID:DavidIWilson,项目名称:site1,代码行数:22,代码来源:ValidationTrait.php

示例3: configurationUpdated

 /**
  * Response when update extension configuration succeed.
  *
  * @param  \Illuminate\Support\Fluent  $extension
  *
  * @return mixed
  */
 public function configurationUpdated(Fluent $extension)
 {
     $this->dispatch(new RefreshRouteCache());
     $message = trans('orchestra/foundation::response.extensions.configure', $extension->getAttributes());
     return $this->redirectWithMessage(handles('orchestra::extensions'), $message);
 }
开发者ID:quetzyg,项目名称:foundation,代码行数:13,代码来源:ConfigureController.php

示例4: runValidationEvents

 /**
  * Run validation events and return the finalize rules.
  *
  * @param  array    $events
  * @return array
  */
 protected function runValidationEvents($events)
 {
     // Merge all the events.
     $events = array_merge($this->events, (array) $events);
     // Convert rules array to Fluent, in order to pass it by references
     // in all event listening to this validation.
     $rules = new Fluent($this->getBindedRules());
     foreach ((array) $events as $event) {
         Event::fire($event, array(&$rules));
     }
     return $rules->getAttributes();
 }
开发者ID:erpio,项目名称:Reportula,代码行数:18,代码来源:Validator.php


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