9
File /modules/newbb/include/functions.php has 1450 lines ( 3.8)
but it all comes from /frameworks/art/ - this "ArtObject" thing !!!
here are the lines ( 953 to 984 ):
function newbb_getrank($rank_id =0, $posts = 0)
{
static $ranks;
$myts =& MyTextSanitizer::getInstance();
if(empty($ranks)){
if(!class_exists("XoopsRankHandler")):
class XoopsRank extends ArtObject
{
function XoopsRank()
{
$this->ArtObject();
$this->initVar('rank_id', XOBJ_DTYPE_INT, null, false);
$this->initVar('rank_title', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('rank_min', XOBJ_DTYPE_INT, 0);
$this->initVar('rank_max', XOBJ_DTYPE_INT, 0);
$this->initVar('rank_special', XOBJ_DTYPE_INT, 0);
$this->initVar('rank_image', XOBJ_DTYPE_TXTBOX, "");
}
}
class XoopsRankHandler extends ArtObjectHandler
{
function XoopsRankHandler(&$db) {
$this->ArtObjectHandler($db, 'ranks', 'XoopsRank', 'rank_id', 'rank_title');
}
}
$rank_handler =& new XoopsRankHandler($GLOBALS["xoopsDB"]);
else:
$rank_handler =& xoops_gethandler('rank');
endif;
$ranks = $rank_handler->getObjects(null, true, false);
}