示例#1
0
/**
* Moves the order of a record
*
* @param integer $ The increment to reorder by
*/
function orderCategory($uid, $inc)
{
    $database = JFactory::getDBO();
    $mainframe = JFactory::getApplication();
    $row = new mosDMCategory($database);
    $row->load($uid);
    $row->move($inc, "section='{$row->section}'");
    $mainframe->redirect('index.php?option=com_docman&section=categories');
}
示例#2
0
/**
* Moves the order of a record
*
* @param integer $ The increment to reorder by
*/
function orderCategory($uid, $inc)
{
    global $database;
    $row = new mosDMCategory($database);
    $row->load($uid);
    $row->move($inc, "section='{$row->section}'");
    mosRedirect('index2.php?option=com_docman&section=categories');
}