Parameters

at line 379

Parameters

int

$type

PropelConfiguration::TYPEARRAY: return the configuration as an array (for backward compatibility this is the default) - PropelConfiguration::TYPEARRAYFLAT: return the configuration as a flat array ($config['name.space.item']) - PropelConfiguration::TYPEOBJECT: return the configuration as a PropelConfiguration instance

Return Value

mixed

The Configuration (array or PropelConfiguration)

at line 396

static public
setLogger(object $logger)

Override the configured logger.

This is primarily for things like unit tests / debugging where
you want to change the logger without altering the configuration file.

You can use any logger class that implements the propel.logger.BasicLogger
interface. This interface is based on PEAR::Log, so you can also simply pass
a PEAR::Log object to this method.

Parameters

object

$logger

The new logger to use. ([PEAR] Log or BasicLogger)

at line 407

static public bool
hasLogger()

Returns true if a logger, for example PEAR::Log, has been configured, otherwise false.

at line 792

static public string
getDefaultDB()

Return Value

at line 808

static public
close()

This method frees any database connection handles that have been
opened by the getConnection() method.

at line 823

static public boolean
autoload(string $className)

Autoload function for loading propel dependencies.

Parameters

string

$className

The class name needing loading.

Return Value

boolean

TRUE if the class was loaded, false otherwise.

at line 839

static public
initBaseDir()

Initialize the base directory for the autoloader.

Avoids a call to dirname(FILE) each time self::autoload() is called.
FIXME put in the constructor if the Propel class ever becomes a singleton

at line 859

static public string
importClass($path)

Include once a file specified in DOT notation and return unqualified classname.

Typically, Propel uses autoload is used to load classes and expects that all classes
referenced within Propel are included in Propel's autoload map. This method is only
called when a specific non-Propel classname was specified -- for example, the
classname of a validator in the schema.xml. This method will attempt to include that
class via autoload and then relative to a location on the include_path.