@@ 112-124 (lines=13) @@ | ||
109 | ||
110 | $this->_arrangeCssIndex($pathInfo['dirname'], $file); |
|
111 | } |
|
112 | else if($file->fileExtension == 'js') |
|
113 | { |
|
114 | if($args[1] == 'body') |
|
115 | { |
|
116 | $map = &$this->jsBodyMap; |
|
117 | $mapIndex = &$this->jsBodyMapIndex; |
|
118 | } |
|
119 | else |
|
120 | { |
|
121 | $map = &$this->jsHeadMap; |
|
122 | $mapIndex = &$this->jsHeadMapIndex; |
|
123 | } |
|
124 | } |
|
125 | ||
126 | (is_null($file->index)) ? $file->index = 0 : $file->index = $file->index; |
|
127 | if(!isset($mapIndex[$file->key]) || $mapIndex[$file->key] > $file->index) |
|
@@ 315-324 (lines=10) @@ | ||
312 | */ |
|
313 | function getJsFileList($type = 'head') |
|
314 | { |
|
315 | if($type == 'head') |
|
316 | { |
|
317 | $map = &$this->jsHeadMap; |
|
318 | $mapIndex = &$this->jsHeadMapIndex; |
|
319 | } |
|
320 | else |
|
321 | { |
|
322 | $map = &$this->jsBodyMap; |
|
323 | $mapIndex = &$this->jsBodyMapIndex; |
|
324 | } |
|
325 | ||
326 | $this->_sortMap($map, $mapIndex); |
|
327 |