29 lines
569 B
Plaintext
29 lines
569 B
Plaintext
<?php
|
|
|
|
function dijit_code_location() {
|
|
return '../../dijit/';
|
|
}
|
|
|
|
function dijit_project_name() {
|
|
return 'dijit';
|
|
}
|
|
|
|
function dijit_resource_name($namespace, $file) {
|
|
return $file;
|
|
}
|
|
|
|
function dijit_package_name($namespace, $file) {
|
|
//return;
|
|
$parts = explode('/', $file);
|
|
if ($parts[0] == '_base') {
|
|
return $namespace;
|
|
}
|
|
$file_parts = explode('.', array_pop($parts));
|
|
if (in_array('tests', $parts)) return;
|
|
array_pop($file_parts);
|
|
array_push($parts, implode('.', $file_parts));
|
|
array_unshift($parts, $namespace);
|
|
return implode('.', $parts);
|
|
}
|
|
|
|
?> |