Last change
on this file since 256 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
-
Property svn:executable set to
*
|
File size:
572 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function dojo_code_location() { |
---|
4 | return '../../dojo/'; |
---|
5 | } |
---|
6 | |
---|
7 | function dojo_project_name() { |
---|
8 | return 'dojo'; |
---|
9 | } |
---|
10 | |
---|
11 | function dojo_resource_name($namespace, $file) { |
---|
12 | return $file; |
---|
13 | } |
---|
14 | |
---|
15 | function dojo_package_name($namespace, $file) { |
---|
16 | //return; |
---|
17 | $parts = explode('/', $file); |
---|
18 | if ($parts[0] == '_base') { |
---|
19 | return $namespace; |
---|
20 | } |
---|
21 | $file_parts = explode('.', array_pop($parts)); |
---|
22 | if (in_array('tests', $parts)) return; |
---|
23 | array_pop($file_parts); |
---|
24 | array_push($parts, implode('.', $file_parts)); |
---|
25 | array_unshift($parts, $namespace); |
---|
26 | return implode('.', $parts); |
---|
27 | } |
---|
28 | |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.