@@ 1703-1712 (lines=10) @@ | ||
1700 | * |
|
1701 | * @return void |
|
1702 | */ |
|
1703 | public function addConfigs($configs, $dirname = 'system') |
|
1704 | { |
|
1705 | $dirname = trim(strtolower($dirname)); |
|
1706 | if (empty($dirname)) { |
|
1707 | $dirname = $this->isModule() ? $this->module->getVar('dirname') : 'system'; |
|
1708 | } |
|
1709 | if (!empty($dirname)) { |
|
1710 | $this->moduleConfigs[$dirname] = array_merge($this->moduleConfigs[$dirname], (array)$configs); |
|
1711 | } |
|
1712 | } |
|
1713 | ||
1714 | /** |
|
1715 | * Set Config Value |
|
@@ 1723-1732 (lines=10) @@ | ||
1720 | * |
|
1721 | * @return void |
|
1722 | */ |
|
1723 | public function setConfig($key, $value = null, $dirname = 'system') |
|
1724 | { |
|
1725 | if (!is_null($value)) { |
|
1726 | $dirname = trim(strtolower($dirname)); |
|
1727 | if (empty($dirname)) { |
|
1728 | $dirname = $this->isModule() ? $this->module->getVar('dirname') : 'system'; |
|
1729 | } |
|
1730 | $this->moduleConfigs[$dirname][$key] =& $value; |
|
1731 | } |
|
1732 | } |
|
1733 | ||
1734 | /** |
|
1735 | * Unset Config Value |