24 lines
506 B
PHP
24 lines
506 B
PHP
|
|
<?
|
||
|
|
|
||
|
|
namespace controller\common\menu;
|
||
|
|
|
||
|
|
use common\Menu;
|
||
|
|
use ms\ms\structure\msControllerTable;
|
||
|
|
|
||
|
|
class Api extends msControllerTable {
|
||
|
|
|
||
|
|
static $class = 'common\Menu';
|
||
|
|
|
||
|
|
|
||
|
|
public function updatePosForID($id=null,$pos=null,$where = null){
|
||
|
|
if(IF_AUTH) {
|
||
|
|
if($C = Menu::isMy($_POST['id'])) {
|
||
|
|
$where = \Where::_operator(Menu::$PARENT, '=', $C[Menu::$PARENT]);
|
||
|
|
parent::updatePosForID($_POST['id'], $_POST['pos'], $where);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|