You are here

function DB_common::getOption in Flickr API 5

Returns the value of an option

Parameters

string $option the option name you're curious about:

Return value

mixed the option's value

1 call to DB_common::getOption()
DB_common::getSequenceName in phpFlickr/PEAR/DB/common.php
Generates the name used inside the database for a sequence

File

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

Class

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

Code

function getOption($option) {
  if (isset($this->options[$option])) {
    return $this->options[$option];
  }
  return $this
    ->raiseError("unknown option {$option}");
}