meraproject/module/shop/cashbox/controller.php
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

27 lines
557 B
PHP

<?
namespace controller\shop\cashbox;
use shop\Cashbox;
use shop\core\structure\shopControllerTable;
class Api extends shopControllerTable {
static $class = 'shop\Cashbox';
static function getMyListByAccount(){
$res = [];
if(IF_AUTH){
$r = Cashbox::select([
\Query::WHERE => new \Where(\Where::_operator(Cashbox::$ACCOUNT,'=',UID))
],false);
while($l = \DB::fetch($r)){
$res[] = Cashbox::appFormat($l);
}
}
echo je($res);
}
}