rhymix/modules/layout/layout.view.php
mosmartin 4d272994dd english comments added
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
2011-04-06 16:48:06 +00:00

32 lines
942 B
PHP

<?php
/**
* @class layoutView
* @author NHN (developers@xpressengine.com)
* @brief admin view class of the layout module
**/
class layoutView extends layout {
/**
* @brief Initialization
**/
function init() {
$this->setTemplatePath($this->module_path.'tpl');
}
/**
* @brief Pop-up layout details(conf/info.xml)
**/
function dispLayoutInfo() {
// Get the layout information
$oLayoutModel = &getModel('layout');
$layout_info = $oLayoutModel->getLayoutInfo(Context::get('selected_layout'));
if(!$layout_info) exit();
Context::set('layout_info', $layout_info);
// Set the layout to be pop-up
$this->setLayoutFile('popup_layout');
// Set a template file
$this->setTemplateFile('layout_detail_info');
}
}
?>