protected function addGetByPositionBody(&$script)
    {
        $table = $this->getTable();
        $script .= "
        switch (\$pos) {";
        $i = 0;
        foreach ($table->getColumns() as $col) {
            $cfc = $col->getPhpName();
            $script .= "
            case $i:
                return \$this->get$cfc();
                break;";
            $i++;
        } /* foreach */
        $script .= "
            default:
                return null;
                break;
        } // switch()";
    }
protected function addGetByPositionBody(&$script)
    {
        $table = $this->getTable();
        $script .= "
        switch (\$pos) {";
        $i = 0;
        foreach ($table->getColumns() as $col) {
            $cfc = $col->getPhpName();
            $script .= "
            case $i:
                return \$this->get$cfc();
                break;";
            $i++;
        } /* foreach */
        $script .= "
            default:
                return null;
                break;
        } // switch()";
    }
protected function addGetByPositionBody ( & $ script ) { $ table = $ this -> getTable ( ) ; $ script .= "
        switch (\$pos) {" ; $ i = 0 ; foreach ( $ table -> getColumns ( ) as $ col ) { $ cfc = $ col -> getPhpName ( ) ; $ script .= "
            case $i:
                return \$this->get$cfc();
                break;" ; $ i ++ ; } /* foreach */ $ script .= "
            default:
                return null;
                break;
        } // switch()" ; }
Adds the function body for the getByPosition method
@param string &$script The script will be modified in this method.
@see addGetByPosition
Adds the function body for the getByPosition method