示例#1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return NOTIFICATIONS_BOL_RuleDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
示例#2
0
文件: service.php 项目: vazahat/dudex
 public function saveRule(NOTIFICATIONS_BOL_Rule $rule)
 {
     $this->ruleDao->save($rule);
 }