mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
#19705602 specify db table column parameter in layout module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8342 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
612c4a6fbd
commit
315345a566
2 changed files with 6 additions and 4 deletions
|
|
@ -19,7 +19,8 @@
|
|||
**/
|
||||
function dispLayoutAdminContent() {
|
||||
$oLayoutModel = &getModel('layout');
|
||||
$layout_list = $oLayoutModel->getLayoutList();
|
||||
$columnList = array('layout_srl', 'layout', 'module_srl', 'title', 'regdate');
|
||||
$layout_list = $oLayoutModel->getLayoutList(0, 'P', $columnList);
|
||||
Context::set('layout_list', $layout_list);
|
||||
|
||||
$this->setTemplateFile('index');
|
||||
|
|
@ -27,7 +28,8 @@
|
|||
|
||||
function dispLayoutAdminMobileContent() {
|
||||
$oLayoutModel = &getModel('layout');
|
||||
$layout_list = $oLayoutModel->getLayoutList(0, "M");
|
||||
$columnList = array('layout_srl', 'layout', 'module_srl', 'title', 'regdate');
|
||||
$layout_list = $oLayoutModel->getLayoutList(0, 'M', $columnList);
|
||||
Context::set('layout_list', $layout_list);
|
||||
|
||||
$this->setTemplateFile('mindex');
|
||||
|
|
|
|||
|
|
@ -19,14 +19,14 @@
|
|||
* @brief Get a layout list created in the DB
|
||||
* If you found a new list, it means that the layout list is inserted to the DB
|
||||
**/
|
||||
function getLayoutList($site_srl = 0, $layout_type="P") {
|
||||
function getLayoutList($site_srl = 0, $layout_type="P", $columnList = array()) {
|
||||
if(!$site_srl) {
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$site_srl = (int)$site_module_info->site_srl;
|
||||
}
|
||||
$args->site_srl = $site_srl;
|
||||
$args->layout_type = $layout_type;
|
||||
$output = executeQuery('layout.getLayoutList', $args);
|
||||
$output = executeQuery('layout.getLayoutList', $args, $columnList);
|
||||
if(!$output->data) return;
|
||||
if(is_array($output->data)) return $output->data;
|
||||
return array($output->data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue