1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
<?php
function util_code_location() {
return '../../util/';
}
function util_project_name() {
return 'util';
}
function util_resource_name($namespace, $file) {
return $file;
}
function util_package_name($namespace, $file) {
//return;
$parts = explode('/', $file);
if ($parts[0] == '_base') {
return $namespace;
}
$file_parts = explode('.', array_pop($parts));
array_pop($file_parts);
array_push($parts, implode('.', $file_parts));
array_unshift($parts, $namespace);
return implode('.', $parts);
}
?>
|