Minahito
minah****@users*****
2006年 6月 20日 (火) 19:53:44 JST
Index: xoops2jp/html/modules/base/kernel/handler.php diff -u xoops2jp/html/modules/base/kernel/handler.php:1.1.2.15 xoops2jp/html/modules/base/kernel/handler.php:1.1.2.16 --- xoops2jp/html/modules/base/kernel/handler.php:1.1.2.15 Sun May 28 16:28:44 2006 +++ xoops2jp/html/modules/base/kernel/handler.php Tue Jun 20 19:53:44 2006 @@ -2,6 +2,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); +require_once XOOPS_ROOT_PATH . "/modules/base/kernel/criteria.class.php"; + /** * NOTE: This class has only one primary key and one table. */ @@ -340,5 +342,18 @@ return $flag; } + /** + * Create criteria object for this handler, and return it. + * + * @access public + * @return Object Legacy_Criteria + */ + function &createCriteria() + { + $dmy =& $this->create(); + $criteria =& new Legacy_Criteria($dmy->getTypeInformations()); + + return $criteria; + } } ?> \ No newline at end of file