/** * Returns an instance of class. * * @return OCSFUNDRAISING_BOL_CategoryDao */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
/** * Returns the order of a new category * * @return int */ public function getCategoryNextOrder() { return 1 + $this->categoryDao->getMaxOrder(); }