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