< Other Quirks   (Previous) Table of Contents (Next)   Connection Script >

Portability Class Constructor

/**
 * Establishes the settings the Portability class needs
 *
 * @param   object   $db  the PEAR DB object you're using
 * @return  void
 */
function Portability($db) {
    $this->phptype  = $db->dsn['phptype'];
    $this->dbsyntax = $db->dsn['dbsyntax'];

    $this->setAsKeyword();
    $this->setBooleanType();
    $this->setClobType();
    $this->setConcatenationQueryOperator();
    $this->setDateQueryFormat();
    $this->setDateType();
    $this->setDateLiteralType();
    $this->setDecimalType();
    $this->setDropCascade();
    $this->setDropRestrict();
    $this->setNullKeyword();
    $this->setTimestampQueryFormat();
    $this->setTimestampSettingQuery();
    $this->setTimestampType();
    $this->setTimestampLiteralType();

    $this->executeTimestampSettingQuery($db);
}