irm-1.6-b3/MDB/Manager.php
/**
     * dump the structure of a sequence
     *
     * @param string  $sequence_name
     * @param string  $eol
     * @return mixed string with xml seqeunce definition on success, or a MDB error object
     * @access private
     */
dump the structure of a sequence
@param string  $sequence_name
@param string  $eol
@return mixed string with xml seqeunce definition on success, or a MDB error object
@access private
dump the structure of a sequence @param string $sequence_name @param string $eol @return mixed string with xml seqeunce definition on success or a MDB error object @access private
function _dumpSequence($sequence_name, $eol, $dump = MDB_MANAGER_DUMP_ALL)
    {
        $sequence_definition = $this->database_definition['SEQUENCES'][$sequence_name];
        $buffer = "$eol <sequence>$eol  <name>$sequence_name</name>$eol";
        if($dump == MDB_MANAGER_DUMP_ALL || $dump == MDB_MANAGER_DUMP_CONTENT) {
            if(isset($sequence_definition['start'])) {
                $start = $sequence_definition['start'];
                $buffer .= "  <start>$start</start>$eol";
            }
        }
        if(isset($sequence_definition['on'])) {
            $buffer .= "  <on>$eol   <table>".$sequence_definition['on']['table']."</table>$eol   <field>".$sequence_definition['on']['field']."</field>$eol  </on>$eol";
        }
        $buffer .= " </sequence>$eol";
        return($buffer);
    }
function _dumpSequence ( $ sequence_name , $ eol , $ dump = MDB_MANAGER_DUMP_ALL ) { $ sequence_definition = $ this -> database_definition [ 'SEQUENCES' ] [ $ sequence_name ] ; $ buffer = " $ eol  <sequence> $ eol   <name> $ sequence_name </name> $ eol " ; if ( $ dump == MDB_MANAGER_DUMP_ALL || $ dump == MDB_MANAGER_DUMP_CONTENT ) { if ( isset ( $ sequence_definition [ 'start' ] ) ) { $ start = $ sequence_definition [ 'start' ] ; $ buffer .= "   <start> $ start </start> $ eol " ; } } if ( isset ( $ sequence_definition [ 'on' ] ) ) { $ buffer .= "   <on> $ eol    <table> " . $ sequence_definition [ 'on' ] [ 'table' ] . " </table> $ eol    <field> " . $ sequence_definition [ 'on' ] [ 'field' ] . " </field> $ eol   </on> $ eol " ; } $ buffer .= "  </sequence> $ eol " ; return ( $ buffer ) ; }
dump the structure of a sequence
 @param string  $sequence_name
 @param string  $eol
 @return mixed string with xml seqeunce definition on success, or a MDB error object
 @access private
dump the structure of a sequence @param string $sequence_name @param string $eol @return mixed string with xml seqeunce definition on success or a MDB error object @access private