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