コード例 #1
0
ファイル: View.php プロジェクト: flelievre/EasyVisit
 /**
  * Get the data bound to the view instance.
  *
  * @return array
  */
 protected function gatherData()
 {
     $data = array_merge($this->environment->getShared(), $this->data);
     foreach ($data as $key => $value) {
         if ($value instanceof Renderable) {
             $data[$key] = $value->render();
         }
     }
     return $data;
 }
コード例 #2
0
ファイル: _ide_helper.php プロジェクト: jorzhikgit/MLM-Nexus
 /**
  * Get all of the shared data for the environment.
  *
  * @return array 
  * @static 
  */
 public static function getShared()
 {
     return \Illuminate\View\Environment::getShared();
 }