@@ 1713-1722 (lines=10) @@ | ||
1710 | * |
|
1711 | * @return void |
|
1712 | */ |
|
1713 | public function addConfigs($configs, $dirname = 'system') |
|
1714 | { |
|
1715 | $dirname = trim(strtolower($dirname)); |
|
1716 | if (empty($dirname)) { |
|
1717 | $dirname = $this->isModule() ? $this->module->getVar('dirname') : 'system'; |
|
1718 | } |
|
1719 | if (!empty($dirname)) { |
|
1720 | $this->moduleConfigs[$dirname] = array_merge($this->moduleConfigs[$dirname], (array)$configs); |
|
1721 | } |
|
1722 | } |
|
1723 | ||
1724 | /** |
|
1725 | * Set Config Value |
|
@@ 1733-1742 (lines=10) @@ | ||
1730 | * |
|
1731 | * @return void |
|
1732 | */ |
|
1733 | public function setConfig($key, $value = null, $dirname = 'system') |
|
1734 | { |
|
1735 | if (!is_null($value)) { |
|
1736 | $dirname = trim(strtolower($dirname)); |
|
1737 | if (empty($dirname)) { |
|
1738 | $dirname = $this->isModule() ? $this->module->getVar('dirname') : 'system'; |
|
1739 | } |
|
1740 | $this->moduleConfigs[$dirname][$key] =& $value; |
|
1741 | } |
|
1742 | } |
|
1743 | ||
1744 | /** |
|
1745 | * Unset Config Value |