You are here

function DB_common::getSequenceName in Flickr API 5

Generates the name used inside the database for a sequence

The createSequence() docblock contains notes about storing sequence names.

@access protected DB_common::nextID(), DB_common::setOption()

Parameters

string $sqn the sequence's public name:

Return value

string the sequence's name in the backend

See also

DB_common::createSequence(), DB_common::dropSequence(),

6 calls to DB_common::getSequenceName()
DB_mysql::createSequence in phpFlickr/PEAR/DB/mysql.php
Creates a new sequence
DB_mysql::dropSequence in phpFlickr/PEAR/DB/mysql.php
Deletes a sequence
DB_mysql::nextId in phpFlickr/PEAR/DB/mysql.php
Returns the next free id in a sequence
DB_pgsql::createSequence in phpFlickr/PEAR/DB/pgsql.php
Creates a new sequence
DB_pgsql::dropSequence in phpFlickr/PEAR/DB/pgsql.php
Deletes a sequence

... See full list

File

phpFlickr/PEAR/DB/common.php, line 1724

Class

DB_common
DB_common is the base class from which each database driver class extends

Code

function getSequenceName($sqn) {
  return sprintf($this
    ->getOption('seqname_format'), preg_replace('/[^a-z0-9_.]/i', '_', $sqn));
}