Application->recallObject( $this->getPrefixSpecial(), $this->Prefix.'_List',$params); $sql = 'SELECT COUNT(*) FROM '.$object->TableName.' WHERE ItemType=0 AND AffiliatePlanId='.$this->Application->GetVar('ap_id'); return $this->Conn->GetOne($sql); } function ItemIcon($params) { $object =& $this->Application->recallObject($this->getPrefixSpecial(),$this->Prefix, $params); if($object->GetDBField('ItemType') == 2) { $cat_object =& $this->Application->recallObject('c'); $cat_object->Load( $object->GetDBField('CategoryId') ); $cat_tag_processor =& $this->Application->recallObject('c_TagProcessor'); return $cat_tag_processor->ItemIcon(); } else { return parent::ItemIcon($params); } } } ?>