Пример #1
0
 /**
  * Get contents of this loader
  *
  * @return string
  */
 public function getContents()
 {
     $contents = parent::getContents();
     if ($this->json_contents != null) {
         $json_contents = $this->json_contents;
     } else {
         $json_contents = json_decode($contents, true);
     }
     $this->json_contents = empty($json_contents) ? null : $json_contents;
     return $this->json_contents;
 }