Postgres::setSchema PHP Метод

setSchema() публичный Метод

Sets the current working schema. Will also set Class variable.
public setSchema ( $schema )
$schema The the name of the schema to work in
    function setSchema($schema)
    {
        // Get the current schema search path, including 'pg_catalog'.
        $search_path = $this->getSearchPath();
        // Prepend $schema to search path
        array_unshift($search_path, $schema);
        $status = $this->setSearchPath($search_path);
        if ($status == 0) {
            $this->_schema = $schema;
            return 0;
        } else {
            return $status;
        }
    }
Postgres