22 lines
513 B
PHP
22 lines
513 B
PHP
|
|
<?
|
||
|
|
|
||
|
|
namespace controller\common\gallery\slide;
|
||
|
|
|
||
|
|
use common\gallery\Slide;
|
||
|
|
use ms\ms\structure\msControllerTable;
|
||
|
|
|
||
|
|
class Api extends msControllerTable {
|
||
|
|
|
||
|
|
static $class = 'common\gallery\Slide';
|
||
|
|
|
||
|
|
public function updatePosForID($id=null,$pos=null,$where = null){
|
||
|
|
if(IF_AUTH) {
|
||
|
|
$C = Slide::getByID($_POST['id']);
|
||
|
|
$where = \Where::_operator(Slide::$GALLERY, '=', $C[Slide::$GALLERY]);
|
||
|
|
parent::updatePosForID($_POST['id'], $_POST['pos'], $where);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|