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; }
protected function _createBucketId() { do { $id = Bucket::createId(); $exists = isset($_SESSION[$this->containerName][$id]); } while ($exists); return $id; }
protected function _createBucketId() { do { $id = Bucket::createId(); $exists = file_exists($this->directory . $id . '.bck'); } while ($exists); return $id; }
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; }