コード例 #1
0
ファイル: HelpDesk.php プロジェクト: timelessmemory/uhkklp
 /**
  * Get the clients in pending
  * @param string $deskId
  * @param MongoId $accountId
  * @return integer $count
  */
 public static function connectPendingClient($deskId, $accountId, $count = 1)
 {
     $clients = PendingClient::deQueue($deskId, $count);
     foreach ($clients as $client) {
         self::createConnection($client, $deskId, $accountId);
     }
 }