Exemplo n.º 1
0
 protected function _createBucketId()
 {
     do {
         $id = Bucket::createId();
         $exists = $this->database->query('SELECT COUNT(*) c FROM ' . $this->table . ' WHERE id = %t%', array($id), Database::FILTER_FIELD);
     } while ($exists);
     return $id;
 }
Exemplo n.º 2
0
 protected function _createBucketId()
 {
     do {
         $id = Bucket::createId();
         $exists = isset($_SESSION[$this->containerName][$id]);
     } while ($exists);
     return $id;
 }
Exemplo n.º 3
0
 protected function _createBucketId()
 {
     do {
         $id = Bucket::createId();
         $exists = file_exists($this->directory . $id . '.bck');
     } while ($exists);
     return $id;
 }
Exemplo n.º 4
0
 protected function _createBucketId()
 {
     do {
         $id = Bucket::createId();
         $st = DoctrineTools::prepareQuery($this->connection, 'SELECT COUNT(*) c FROM ' . $this->table . ' WHERE id = %t%', array($id));
         $st->execute();
         $exists = $st->fetchColumn() > 0;
     } while ($exists);
     return $id;
 }