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