meraproject/module/kbase/article/controller.php

25 lines
522 B
PHP
Raw Permalink Normal View History

<?
namespace controller\kbase\article;
use kbase\Article;
use ms\ms\structure\msControllerTable;
class Api extends msControllerTable {
static $class = 'kbase\Article';
public function updatePosForID($id=null,$pos=null,$where = null){
if(IF_AUTH) {
if($C = Article::isMy($_POST['id'])) {
$where = \Where::_operator(Article::$PARENT, '=', $C[Article::$PARENT]);
parent::updatePosForID($_POST['id'], $_POST['pos'], $where);
}
}
}
}