modules_manager_skeleton.php

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· PHP 代码 · 共 489 行 · 第 1/2 页

PHP
489
字号
     *      * @return mixed MDB_OK on success, a MDB error on failure     */    function alterTable(&$db, $name, $changes, $check)    {        // take this from the corresponding Metabase driver: AlterTable()    }    // }}}    // {{{ listDatabases()    /**     * list all databases     *     * @param object    $dbs        database object that is extended by this class     * @return mixed data array on success, a MDB error on failure     * @access public     */    function listDatabases(&$db)    {        // new in MDB    }    // }}}    // {{{ listUsers()    /**     * list all users     *     * @param object    $dbs        database object that is extended by this class     * @return mixed data array on success, a MDB error on failure     * @access public     */    function listUsers(&$db)    {        // new in MDB    }    // }}}    // {{{ listTables()    /**     * list all tables in the current database     *     * @param object    $dbs        database object that is extended by this class     * @return mixed data array on success, a MDB error on failure     * @access public     */    function listTables(&$db)    {        // new in MDB    }    // }}}    // {{{ listTableFields()    /**     * list all fields in a tables in the current database     *     * @param object    $dbs        database object that is extended by this class     * @param string $table name of table that should be used in method     * @return mixed data array on success, a MDB error on failure     * @access public     */    function listTableFields(&$db, $table)    {        // new in MDB    }    // }}}    // {{{ getTableFieldDefinition()    /**     * get the stucture of a field into an array     *     * @param object    $dbs        database object that is extended by this class     * @param string    $table         name of table that should be used in method     * @param string    $field_name     name of field that should be used in method     * @return mixed data array on success, a MDB error on failure     * @access public     */    function getTableFieldDefinition(&$db, $table, $field_name)    {        // new in MDB    }    // }}}    // {{{ createIndex()    /**     * get the stucture of a field into an array     *     * @param object    $dbs        database object that is extended by this class     * @param string    $table         name of the table on which the index is to be created     * @param string    $name         name of the index to be created     * @param array     $definition        associative array that defines properties of the index to be created.     *                                 Currently, only one property named FIELDS is supported. This property     *                                 is also an associative with the names of the index fields as array     *                                 indexes. Each entry of this array is set to another type of associative     *                                 array that specifies properties of the index that are specific to     *                                 each field.     *     *                                Currently, only the sorting property is supported. It should be used     *                                 to define the sorting direction of the index. It may be set to either     *                                 ascending or descending.     *     *                                Not all DBMS support index sorting direction configuration. The DBMS     *                                 drivers of those that do not support it ignore this property. Use the     *                                 function support() to determine whether the DBMS driver can manage indexes.     *                                 Example     *                                    array(     *                                        'FIELDS' => array(     *                                            'user_name' => array(     *                                                'sorting' => 'ascending'     *                                            ),     *                                            'last_login' => array()     *                                        )     *                                    )     * @return mixed MDB_OK on success, a MDB error on failure     * @access public     */    function createIndex(&$db, $table, $name, $definition)    {        // take this from the corresponding Metabase driver: CreateIndex()    }    // }}}    // {{{ dropIndex()    /**     * drop existing index     *     * @param object    $dbs        database object that is extended by this class     * @param string    $table         name of table that should be used in method     * @param string    $name         name of the index to be dropped     * @return mixed MDB_OK on success, a MDB error on failure     * @access public     */    function dropIndex(&$db, $table, $name)    {        // take this from the corresponding Metabase driver: DropIndex()    }    // }}}    // {{{ listTableIndexes()    /**     * list all indexes in a table     *     * @param object    $dbs        database object that is extended by this class     * @param string    $table      name of table that should be used in method     * @return mixed data array on success, a MDB error on failure     * @access public     */    function listTableIndexes(&$db, $table)    {        // new in MDB    }    // }}}    // {{{ getTableIndexDefinition()    /**     * get the stucture of an index into an array     *     * @param object    $dbs        database object that is extended by this class     * @param string    $table      name of table that should be used in method     * @param string    $index_name name of index that should be used in method     * @return mixed data array on success, a MDB error on failure     * @access public     */    function getTableIndexDefinition(&$db, $table, $index_name)    {        // new in MDB    }    // }}}    // {{{ createSequence()    /**     * create sequence     *     * @param object    $dbs        database object that is extended by this class     * @param string    $seq_name     name of the sequence to be created     * @param string    $start         start value of the sequence; default is 1     * @return mixed MDB_OK on success, a MDB error on failure     * @access public     */    function createSequence(&$db, $seq_name, $start)    {        // take this from the corresponding Metabase driver: CreateSequence()    }    // }}}    // {{{ dropSequence()    /**     * drop existing sequence     *     * @param object    $dbs        database object that is extended by this class     * @param string    $seq_name     name of the sequence to be dropped     * @return mixed MDB_OK on success, a MDB error on failure     * @access public     */    function dropSequence(&$db, $seq_name)    {        // take this from the corresponding Metabase driver: DropSequence()    }    // }}}    // {{{ listSequences()    /**     * list all sequences in the current database     *     * @param object    $dbs        database object that is extended by this class     * @return mixed data array on success, a MDB error on failure     * @access public     */    function listSequences(&$db)    {        // new in MDB    }    // }}}    // {{{ getSequenceDefinition()    /**     * get the stucture of a sequence into an array     *     * @param object    $dbs        database object that is extended by this class     * @param string    $sequence   name of sequence that should be used in method     * @return mixed data array on success, a MDB error on failure     * @access public     */    function getSequenceDefinition(&$db, $sequence)    {        // new in MDB    }}}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?