23 lines
504 B
PHP
23 lines
504 B
PHP
<?
|
|
|
|
namespace controller\shop\delivery;
|
|
|
|
use shop\core\structure\shopControllerTable;
|
|
use shop\Delivery;
|
|
|
|
class Api extends shopControllerTable {
|
|
|
|
static $class = 'shop\Delivery';
|
|
|
|
public function updatePosForID($id=null,$pos=null,$where = null){
|
|
if(IF_AUTH) {
|
|
$C = Delivery::getByID($_POST['id']);
|
|
$where = \Where::_operator(Delivery::$SHOP, '=', $C[Delivery::$SHOP]);
|
|
parent::updatePosForID($_POST['id'], $_POST['pos'], $where);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|