@@ 118-129 (lines=12) @@ | ||
115 | * @param string $name Use '*' for all, or string name for single. |
|
116 | * @return array |
|
117 | */ |
|
118 | public function getCss($name = '*') |
|
119 | { |
|
120 | if ('*' == $name) { |
|
121 | return $this->css; |
|
122 | ||
123 | } elseif (array_key_exists($name, $this->css)) { |
|
124 | return $this->css[$name]; |
|
125 | ||
126 | } else { |
|
127 | return null; |
|
128 | } |
|
129 | } |
|
130 | ||
131 | ||
132 | /** |
|
@@ 138-149 (lines=12) @@ | ||
135 | * @param string $name Use '*' for all, or string name for single. |
|
136 | * @return array|string |
|
137 | */ |
|
138 | public function getJs($name = '*') |
|
139 | { |
|
140 | if ('*' == $name) { |
|
141 | return $this->javascript; |
|
142 | ||
143 | } elseif (array_key_exists($name, $this->javascript)) { |
|
144 | return $this->javascript[$name]; |
|
145 | ||
146 | } else { |
|
147 | return null; |
|
148 | } |
|
149 | } |
|
150 | ||
151 | ||
152 | /** |