/** * Get ini configurations and make them an array. * @param int $layout_srl * @param string $layout_name * @return array */ function getUserLayoutIniConfig($layout_srl, $layout_name = null) { $file = $this->getUserLayoutIni($layout_srl); if ($layout_name && FileHandler::exists($file) === FALSE) { FileHandler::copyFile($this->getDefaultLayoutIni($layout_name), $this->getUserLayoutIni($layout_srl)); } return FileHandler::readIniFile($file); }
/** * Get ini configurations and make them an array. * @param int $layout_srl * @param string $layout_name * @return array **/ function getUserLayoutIniConfig($layout_srl, $layout_name = null) { $file = $this->getUserLayoutIni($layout_srl); if ($layout_name && !file_exists(FileHandler::getRealPath($file))) { FileHandler::copyFile($this->getDefaultLayoutIni($layout_name), $this->getUserLayoutIni($layout_srl)); } $output = FileHandler::readIniFile($file); return $output; }