Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 /**
  * Returns the order of a new category
  *
  * @return int
  */
 public function getCategoryNextOrder()
 {
     return 1 + $this->categoryDao->getMaxOrder();
 }