src/Titon/Db/Driver/Dialect/AbstractDialect.php
public function formatDefault($value) {
        if ($value === '') {
            return '';
        }

        if ($value instanceof Closure) {
            $value = call_user_func($value, $this);

        } else if (is_string($value) || $value === null) {
            $value = $this->getDriver()->escape($value);
        }

        return sprintf($this->getClause(self::DEFAULT_TO), $value);
    }
public function formatDefault($value) {
        if ($value === '') {
            return '';
        }

        if ($value instanceof Closure) {
            $value = call_user_func($value, $this);

        } else if (is_string($value) || $value === null) {
            $value = $this->getDriver()->escape($value);
        }

        return sprintf($this->getClause(self::DEFAULT_TO), $value);
    }
public function formatDefault ( $ value ) { if ( $ value === '' ) { return '' ; } if ( $ value instanceof Closure ) { $ value = call_user_func ( $ value , $ this ) ; } else if ( is_string ( $ value ) || $ value === null ) { $ value = $ this -> getDriver ( ) -> escape ( $ value ) ; } return sprintf ( $ this -> getClause ( self :: DEFAULT_TO ) , $ value ) ; }
Format the default value of a column.

@param mixed $value
@return string
Format the default value of a column .