Minahito
minah****@users*****
2006年 8月 3日 (木) 18:30:34 JST
Index: xoops2jp/html/class/XCube_BlockProcedure.class.php diff -u xoops2jp/html/class/XCube_BlockProcedure.class.php:1.1.2.3 xoops2jp/html/class/XCube_BlockProcedure.class.php:1.1.2.4 --- xoops2jp/html/class/XCube_BlockProcedure.class.php:1.1.2.3 Tue Nov 15 21:43:10 2005 +++ xoops2jp/html/class/XCube_BlockProcedure.class.php Thu Aug 3 18:30:34 2006 @@ -1,12 +1,23 @@ <?php - +/** + * @package XCube + * @version $Id: XCube_BlockProcedure.class.php,v 1.1.2.4 2006/08/03 09:30:34 minahito Exp $ + */ + +/** + * @package XCube + */ class XCube_BlockProcedure { function XCube_BlockProcedure() { } - function execute(&$controller,&$user) + function getName() + { + } + + function execute(&$controller, &$user, &$render) { } @@ -40,10 +51,6 @@ { } - function getTemplateName() - { - } - function hasResult() { } @@ -51,74 +58,14 @@ function &getResult() { } -} - -class XCube_LegacyAdaptBlockProcedure extends XCube_BlockProcedure -{ - /** - * @access private - */ - var $mAdapteeBlockObject; - - var $mResultData; - - function XCube_LegacyAdaptBlockProcedure(&$blockObject) - { - $this->mAdapteeBlockObject=&$blockObject; - } - - function execute(&$controller,&$user) - { - $this->mResultData=&$this->mAdapteeBlockObject->buildBlock(); - } - - function getId() - { - return $this->mAdapteeBlockObject->getVar('bid'); - } - - function enableCached() - { - return true; - } /** - * Return cache time - * @return int + * Return a name of the render-system which this object requests to render. + * + * @return string */ - function getCacheTime() - { - return $this->mAdapteeBlockObject->getVar('bcachetime'); - } - - function getTitle() - { - return $this->mAdapteeBlockObject->getVar('title'); - } - - function getEntryIndex() - { - return $this->mAdapteeBlockObject->getVar('side'); - } - - function getWeight() - { - return $this->mAdapteeBlockObject->getVar('weight'); - } - - function getTemplateName() - { - return $this->mAdapteeBlockObject->getVar('template'); - } - - function hasResult() - { - return !empty($this->mResultData); - } - - function &getResult() + function getRenderSystemName() { - return $this->mResultData; } }