. */ /** * Doctrine_DataDict * * @package Doctrine * @subpackage DataDict * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 1.0 * @version $Revision: 7490 $ * @author Konsta Vesterinen * @author Lukas Smith (PEAR MDB2 library) */ class Doctrine_DataDict extends Doctrine_Connection_Module { /** * parseBoolean * parses a literal boolean value and returns * proper sql equivalent * * @param string $value boolean value to be parsed * @return string parsed boolean value */ public function parseBoolean($value) { // parse booleans if ($value == 'true') { $value = 1; } elseif ($value == 'false') { $value = 0; } return $value; } }