meraproject/module/blog/section/controller.php

25 lines
519 B
PHP
Raw Permalink Normal View History

<?
namespace controller\blog\section;
use blog\Section as BlogSection;
use ms\ms\structure\msControllerTable;
class Api extends msControllerTable {
static $class = 'blog\Section';
public function updatePosForID($id=null,$pos=null,$where = null){
if(IF_AUTH) {
$C = BlogSection::getByID($_POST['id']);
$where = \Where::_operator(BlogSection::$BLOG, '=', $C[BlogSection::$BLOG]);
parent::updatePosForID($_POST['id'], $_POST['pos'], $where);
}
}
}