Minahito
minah****@users*****
2006年 8月 3日 (木) 18:32:17 JST
Index: xoops2jp/html/class/XCube_RenderSystem.class.php diff -u xoops2jp/html/class/XCube_RenderSystem.class.php:1.1.2.16 xoops2jp/html/class/XCube_RenderSystem.class.php:1.1.2.17 --- xoops2jp/html/class/XCube_RenderSystem.class.php:1.1.2.16 Fri Jun 23 10:26:52 2006 +++ xoops2jp/html/class/XCube_RenderSystem.class.php Thu Aug 3 18:32:17 2006 @@ -1,7 +1,7 @@ <?php /** - * @version $Id: XCube_RenderSystem.class.php,v 1.1.2.16 2006/06/23 01:26:52 minahito Exp $ - * @package Cube + * @package XCube + * @version $Id: XCube_RenderSystem.class.php,v 1.1.2.17 2006/08/03 09:32:17 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -162,121 +162,51 @@ */ var $mController; - /** - @access private - */ - var $mThemeName; - - var $mTemplateName; - - var $mDisplayThemeFlag=true; - - var $mRenderMode=XCUBE_RENDER_MODE_NORMAL; - - /** - * This is default whom this renders without the render-target specified. - * - * @access private - */ - var $mRenderTarget=null; + var $mRenderMode = XCUBE_RENDER_MODE_NORMAL; function XCube_RenderSystem() { } - function prepare(&$controller) - { - $this->mController =& $controller; - } - /** - * Set main render target. + * Prepare. * - * @param $renderTarget XCube_RenderTarget + * @param XCube_Controller $controller */ - function setRenderTarget(&$renderTarget) + function prepare(&$controller) { - $this->mRenderTarget=&$renderTarget; + $this->mController =& $controller; } - + /** - * Return main render target. + * Create an object of the render-target, and return it. * + * @param int $type The number which shows the type of the render-target. Use constants. * @return XCube_RenderTarget */ - function &getRenderTarget() - { - return $this->mRenderTarget; - } - - function setTemplateName($name) - { - $this->mTemplateName=$name; - } - - function setAttribute($key,$value) - { - } - - function getAttribute($key) - { - } - - /** - * @deprecated - */ - function setThemeName($name) + function &createRenderTarget($type = XCUBE_RENDER_TARGET_TYPE_MAIN) { - $this->mThemeName=$name; - } - - /** - * @deprecated - */ - function getThemeName($name) - { - $this->mThemeName=$name; - } + $renderTarget =& new XCube_RenderTarget(); + $renderTarget->setType($type); - function renderBlock(&$blockProcedure) - { - } - - function render() - { - $this->renderWithTarget($this->mRenderTarget); - } - - function renderWithTarget(&$renderTarget) - { + return $renderTarget; } /** - * If you set false, the render system may don't display the theme that have 3 columns layout. - * However, XOOPS Cube don't force sub-class to implement this feature. - * There is this feature for compatibility with XOOPS 2.0.x. - * Base_LegacyRenderSystem will implement this feature. - * @param $flag bool - */ - function setDisplayTheme($flag) - { - $this->mDisplayThemeFlag=$flag; - } - - /** - * @deprecated + * Render to $target. + * + * @param XCube_RenderTarget $target */ - function renderMessageBox(&$messageBox) + function render(&$target) { - return null; + $this->renderWithTarget($target); } /** - * @deprecated - */ - function renderConfirmBox(&$messageBox) + * @deprecated see render() + */ + function renderWithTarget(&$renderTarget) { - return null; } }