src/xPDO/Om/xPDODriver.php
public function getPhpType($dbtype) {
        $phptype = 'string';
        if ($dbtype !== null) {
            foreach ($this->dbtypes as $type => $patterns) {
                foreach ($patterns as $pattern) {
                    if (preg_match($pattern, $dbtype)) {
                        $phptype = $type;
                        break 2;
                    }
                }
            }
        }
        return $phptype;
    }
public function getPhpType($dbtype) {
        $phptype = 'string';
        if ($dbtype !== null) {
            foreach ($this->dbtypes as $type => $patterns) {
                foreach ($patterns as $pattern) {
                    if (preg_match($pattern, $dbtype)) {
                        $phptype = $type;
                        break 2;
                    }
                }
            }
        }
        return $phptype;
    }
public function getPhpType ( $ dbtype ) { $ phptype = 'string' ; if ( $ dbtype !== null ) { foreach ( $ this -> dbtypes as $ type => $ patterns ) { foreach ( $ patterns as $ pattern ) { if ( preg_match ( $ pattern , $ dbtype ) ) { $ phptype = $ type ; break 2 ; } } } } return $ phptype ; }
Gets the PHP field type based upon the specified database type.

@access public
@param string $dbtype The database field type to convert.
@return string The associated PHP type
Gets the PHP field type based upon the specified database type .