protected function addColumnNameConstants(&$script)
    {
        foreach ($this->getTable()->getColumns() as $col) {
            $script .= "
    /**
     * the column name for the " . $col->getName() ." field
     */
    const ".$col->getConstantName() ." = '" . $this->getTable()->getName() . ".".$col->getName()."';
";
        } // foreach
    }
protected function addColumnNameConstants(&$script)
    {
        foreach ($this->getTable()->getColumns() as $col) {
            $script .= "
    /**
     * the column name for the " . $col->getName() ." field
     */
    const ".$col->getConstantName() ." = '" . $this->getTable()->getName() . ".".$col->getName()."';
";
        } // foreach
    }
protected function addColumnNameConstants ( & $ script ) { foreach ( $ this -> getTable ( ) -> getColumns ( ) as $ col ) { $ script .= "
    /**
     * the column name for the " . $ col -> getName ( ) . " field
     */
    const " . $ col -> getConstantName ( ) . " = '" . $ this -> getTable ( ) -> getName ( ) . "." . $ col -> getName ( ) . "';
" ; } // foreach }
Adds the COLUMN_NAME constant to the class definition.
@param string &$script The script will be modified in this method.
Adds the COLUMN_NAME constant to the class definition .