public function fillDbLayers() { global $dbtypes; $dbtypes = array(); $dbcfgfile = new ConfigFile(CONFIG_PATH . 'dblayers.cfg', TRUE); $dbtypes = (array) $dbcfgfile->ValuesArray(); }
public function getIconsSet() { $result = array(); $cfg_file = new ConfigFile(CONFIG_PATH . $this->mSetName . '.huiiconsset'); if ($cfg_file->Opened()) { $values = $cfg_file->ValuesArray(); while (list($key, $val) = each($values)) { $key = trim($key); $val = trim($val); if (substr_count($key, '.') == 2) { $tmpkey = strtolower(substr($key, strpos($key, '.') + 1)); $type = substr($tmpkey, 0, strpos($tmpkey, '.')); $realkey = substr($tmpkey, strpos($tmpkey, '.') + 1); $result[$type][$realkey]['file'] = $val; $result[$type][$realkey]['base'] = $this->mSetName; } } } else { import('com.solarix.ampoliros.io.log.Logger'); $log = new Logger(AMP_LOG); $log->LogEvent('ampoliros.huithemes_library.huistyle_class.getstyle', 'Unable to open icons set file ' . CONFIG_PATH . $this->mSetName . '.huiiconsset', LOGGER_ERROR); } return $result; }
public function getStyle() { $result = array(); OpenLibrary('configman.library'); $cfg_file = new ConfigFile(CONFIG_PATH . $this->mStyleName . '.huistyle'); if ($cfg_file->Opened()) { $values = $cfg_file->ValuesArray(); while (list($key, $val) = each($values)) { $key = trim($key); $val = trim($val); $realkey = strtolower(substr($key, strpos($key, '.') + 1)); if ($realkey != 'name') { $result[$realkey]['value'] = $val; $result[$realkey]['base'] = $this->mStyleName; } } } else { import('com.solarix.ampoliros.io.log.Logger'); $log = new Logger(AMP_LOG); $log->LogEvent('ampoliros.huithemes_library.huistyle_class.getstyle', 'Unable to open style file ' . CONFIG_PATH . $this->mStyleName . '.huistyle', LOGGER_ERROR); } return $result; }