示例#1
0
 private function parse_list()
 {
     $sections = Uthando::array_flatten($this->includes);
     foreach ($this->path as $value) {
         $folder = split('/', $value);
         foreach ($sections as $file) {
             if ($file == $folder[1]) {
                 array_push($this->scripts, $this->source_root . $value . '.js');
                 continue;
             }
         }
     }
     if ($this->add_at_end) {
         if (is_array($this->add_at_end)) {
             foreach ($this->add_at_end as $file) {
                 array_push($this->scripts, $file);
             }
         } else {
             array_push($this->scripts, $this->add_at_end);
         }
     }
 }