protected function addValueSetColumnConstants(&$script)
    {
        foreach ($this->getTable()->getColumns() as $col) {
            if ($col->isValueSetType()) {
                $script .= "
    /** The enumerated values for the " . $col->getName() . " field */";
                foreach ($col->getValueSet() as $value) {
                    $script .= "
    const " . $col->getConstantName() . '_' . $this->getValueSetConstant($value) . " = '" . $value . "';";
                }
                $script .= "
";
            }
        }
    }
protected function addValueSetColumnConstants(&$script)
    {
        foreach ($this->getTable()->getColumns() as $col) {
            if ($col->isValueSetType()) {
                $script .= "
    /** The enumerated values for the " . $col->getName() . " field */";
                foreach ($col->getValueSet() as $value) {
                    $script .= "
    const " . $col->getConstantName() . '_' . $this->getValueSetConstant($value) . " = '" . $value . "';";
                }
                $script .= "
";
            }
        }
    }
protected function addValueSetColumnConstants ( & $ script ) { foreach ( $ this -> getTable ( ) -> getColumns ( ) as $ col ) { if ( $ col -> isValueSetType ( ) ) { $ script .= "
    /** The enumerated values for the " . $ col -> getName ( ) . " field */" ; foreach ( $ col -> getValueSet ( ) as $ value ) { $ script .= "
    const " . $ col -> getConstantName ( ) . '_' . $ this -> getValueSetConstant ( $ value ) . " = '" . $ value . "';" ; } $ script .= "
" ; } } }
Adds the valueSet constants for ENUM and SET columns.
@param string &$script The script will be modified in this method.
Adds the valueSet constants for ENUM and SET columns .