Log/mdb2.php
function _createTable()
    {
        $this->_db->loadModule('Manager', null, true);
        $result = $this->_db->manager->createTable(
            $this->_table,
            array(
                'id'        => array('type' => $this->_types['id']),
                'logtime'   => array('type' => $this->_types['logtime']),
                'ident'     => array('type' => $this->_types['ident']),
                'priority'  => array('type' => $this->_types['priority']),
                'message'   => array('type' => $this->_types['message'])
            )
        );
        if (PEAR::isError($result)) {
            return false;
        }

        $result = $this->_db->manager->createIndex(
            $this->_table,
            'unique_id',
            array('fields' => array('id' => true), 'unique' => true)
        );
        if (PEAR::isError($result)) {
            return false;
        }

        return true;
    }
function _createTable()
    {
        $this->_db->loadModule('Manager', null, true);
        $result = $this->_db->manager->createTable(
            $this->_table,
            array(
                'id'        => array('type' => $this->_types['id']),
                'logtime'   => array('type' => $this->_types['logtime']),
                'ident'     => array('type' => $this->_types['ident']),
                'priority'  => array('type' => $this->_types['priority']),
                'message'   => array('type' => $this->_types['message'])
            )
        );
        if (PEAR::isError($result)) {
            return false;
        }

        $result = $this->_db->manager->createIndex(
            $this->_table,
            'unique_id',
            array('fields' => array('id' => true), 'unique' => true)
        );
        if (PEAR::isError($result)) {
            return false;
        }

        return true;
    }
function _createTable ( ) { $ this -> _db -> loadModule ( 'Manager' , null , true ) ; $ result = $ this -> _db -> manager -> createTable ( $ this -> _table , array ( 'id' => array ( 'type' => $ this -> _types [ 'id' ] ) , 'logtime' => array ( 'type' => $ this -> _types [ 'logtime' ] ) , 'ident' => array ( 'type' => $ this -> _types [ 'ident' ] ) , 'priority' => array ( 'type' => $ this -> _types [ 'priority' ] ) , 'message' => array ( 'type' => $ this -> _types [ 'message' ] ) ) ) ; if ( PEAR :: isError ( $ result ) ) { return false ; } $ result = $ this -> _db -> manager -> createIndex ( $ this -> _table , 'unique_id' , array ( 'fields' => array ( 'id' => true ) , 'unique' => true ) ) ; if ( PEAR :: isError ( $ result ) ) { return false ; } return true ; }
Create the log table in the database.

@return boolean  True on success or false on failure.
@access private
Create the log table in the database .