public function addTemporalAccessorOpen(&$script, Column $column)
    {
        $cfc = $column->getPhpName();

        $defaultfmt = null;
        $visibility = $column->getAccessorVisibility();

        // Default date/time formatter strings are specified in propel config
        if ($column->getType() === PropelTypes::DATE) {
            $defaultfmt = $this->getBuildProperty('generator.dateTime.defaultDateFormat');
        } elseif ($column->getType() === PropelTypes::TIME) {
            $defaultfmt = $this->getBuildProperty('generator.dateTime.defaultTimeFormat');
        } elseif ($column->getType() === PropelTypes::TIMESTAMP) {
            $defaultfmt = $this->getBuildProperty('generator.dateTime.defaultTimeStampFormat');
        }

        if (empty($defaultfmt)) {
            $defaultfmt = null;
        }

        $script .= "
    ".$visibility." function get$cfc(\$format = ".var_export($defaultfmt, true)."";
        if ($column->isLazyLoad()) {
            $script .= ", \$con = null";
        }
        $script .= ")
    {";
    }
public function addTemporalAccessorOpen(&$script, Column $column)
    {
        $cfc = $column->getPhpName();

        $defaultfmt = null;
        $visibility = $column->getAccessorVisibility();

        // Default date/time formatter strings are specified in propel config
        if ($column->getType() === PropelTypes::DATE) {
            $defaultfmt = $this->getBuildProperty('generator.dateTime.defaultDateFormat');
        } elseif ($column->getType() === PropelTypes::TIME) {
            $defaultfmt = $this->getBuildProperty('generator.dateTime.defaultTimeFormat');
        } elseif ($column->getType() === PropelTypes::TIMESTAMP) {
            $defaultfmt = $this->getBuildProperty('generator.dateTime.defaultTimeStampFormat');
        }

        if (empty($defaultfmt)) {
            $defaultfmt = null;
        }

        $script .= "
    ".$visibility." function get$cfc(\$format = ".var_export($defaultfmt, true)."";
        if ($column->isLazyLoad()) {
            $script .= ", \$con = null";
        }
        $script .= ")
    {";
    }
public function addTemporalAccessorOpen ( & $ script , Column $ column ) { $ cfc = $ column -> getPhpName ( ) ; $ defaultfmt = null ; $ visibility = $ column -> getAccessorVisibility ( ) ; // Default date/time formatter strings are specified in propel config if ( $ column -> getType ( ) === PropelTypes :: DATE ) { $ defaultfmt = $ this -> getBuildProperty ( 'generator.dateTime.defaultDateFormat' ) ; } elseif ( $ column -> getType ( ) === PropelTypes :: TIME ) { $ defaultfmt = $ this -> getBuildProperty ( 'generator.dateTime.defaultTimeFormat' ) ; } elseif ( $ column -> getType ( ) === PropelTypes :: TIMESTAMP ) { $ defaultfmt = $ this -> getBuildProperty ( 'generator.dateTime.defaultTimeStampFormat' ) ; } if ( empty ( $ defaultfmt ) ) { $ defaultfmt = null ; } $ script .= "
    " . $ visibility . " function get$cfc(\$format = " . var_export ( $ defaultfmt , true ) . "" ; if ( $ column -> isLazyLoad ( ) ) { $ script .= ", \$con = null" ; } $ script .= ")
    {" ; }
Adds the function declaration for a temporal accessor.

@param string &$script
@param Column $column
Adds the function declaration for a temporal accessor .