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

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

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

        if (empty($defaultfmt)) {
            $defaultfmt = 'null';
        } else {
            $defaultfmt = var_export($defaultfmt, true);
        }

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

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

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

        if (empty($defaultfmt)) {
            $defaultfmt = 'null';
        } else {
            $defaultfmt = var_export($defaultfmt, true);
        }

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

@param string &$script The script will be modified in this method.
@param Column $col     The current column.

@see        addTemporalAccessor
Adds the function declaration for a temporal accessor