當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。