| @@ 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) |
|
| @@ 314-323 (lines=10) @@ | ||
| 311 | */ |
|
| 312 | function getJsFileList($type = 'head') |
|
| 313 | { |
|
| 314 | if($type == 'head') |
|
| 315 | { |
|
| 316 | $map = &$this->jsHeadMap; |
|
| 317 | $mapIndex = &$this->jsHeadMapIndex; |
|
| 318 | } |
|
| 319 | else |
|
| 320 | { |
|
| 321 | $map = &$this->jsBodyMap; |
|
| 322 | $mapIndex = &$this->jsBodyMapIndex; |
|
| 323 | } |
|
| 324 | ||
| 325 | $this->_sortMap($map, $mapIndex); |
|
| 326 | ||