thomascube
2011-02-25 e6bb836e053913ec8a5930a6d51af1fa55eb08e2
program/include/rcube_mdb2.php
@@ -413,6 +413,23 @@
    /**
     * Wrapper for SHOW COLUMNS command
     *
     * @param string Table name
     * @return array List of table cols
     */
    function list_cols($table)
    {
        $this->db_handle->loadModule('Manager');
        if (!PEAR::isError($result = $this->db_handle->listTableFields($table))) {
            return $result;
        }
        return null;
    }
    /**
     * Formats input so it can be safely used in a query
     *
     * @param  mixed  $input  Value to quote