コード例 #1
0
ファイル: category_dao.php プロジェクト: vazahat/dudex
 /**
  * Returns an instance of class.
  *
  * @return OCSFUNDRAISING_BOL_CategoryDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
コード例 #2
0
ファイル: service.php プロジェクト: vazahat/dudex
 /**
  * Returns the order of a new category
  *
  * @return int
  */
 public function getCategoryNextOrder()
 {
     return 1 + $this->categoryDao->getMaxOrder();
 }