public function getBooleanString($b)
    {
        $b = ($b === true || strtolower($b) === 'true' || $b === 1 || $b === '1' || strtolower($b) === 'y' || strtolower($b) === 'yes');

        return ($b ? '1' : '0');
    }
public function getBooleanString($b)
    {
        $b = ($b === true || strtolower($b) === 'true' || $b === 1 || $b === '1' || strtolower($b) === 'y' || strtolower($b) === 'yes');

        return ($b ? '1' : '0');
    }
public function getBooleanString ( $ b ) { $ b = ( $ b === true || strtolower ( $ b ) === 'true' || $ b === 1 || $ b === '1' || strtolower ( $ b ) === 'y' || strtolower ( $ b ) === 'yes' ) ; return ( $ b ? '1' : '0' ) ; }
Returns the boolean value for the RDBMS.

This value should match the boolean value that is set
when using Propel's PreparedStatement::setBoolean().

This function is used to set default column values when building
SQL.

@param mixed $tf A boolean or string representation of boolean ('y', 'true').

@return mixed
Returns the boolean value for the RDBMS .