예제 #1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return NOTIFICATIONS_BOL_SendQueueDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
예제 #2
0
파일: service.php 프로젝트: vazahat/dudex
 public function findUserIdListForSend($count)
 {
     $list = $this->sendQueueDao->findList($count);
     if (empty($list)) {
         return array();
     }
     $userIds = array();
     $ids = array();
     foreach ($list as $item) {
         $ids[] = $item->id;
         $userIds[] = $item->userId;
     }
     $this->sendQueueDao->deleteByIdList($ids);
     return $userIds;
 }