4 class Pman_Xtuple_Pman extends Pman {
8 $this->jerr("access denied");
11 function init($pman = flase)
13 // add the offices to the uiConfig.
14 if (empty($pman->uiConfig)) {
15 $pman->uiConfig = array();
18 // scan the root directory for xx.php
19 foreach(scandir($pman->rootDir) as $fn) {
20 if (!is_file($pman->rootDir.'/'.$fn)) {
23 if (!preg_match('/^[a-z]{2}\.php$/',$fn)) {
26 $offices[] = preg_replace('/\.php$/', '', $fn);
30 $pman->uiConfig['xtuple_offices'] = $offices;
32 // add the default config..
33 if(!empty($pman->bootLoader->uiConfig)){
34 foreach ($pman->bootLoader->uiConfig as $k => $v){
35 $pman->uiConfig[$k] = $v;