meraproject/module/ms/portal/controller.php

29 lines
521 B
PHP
Raw Normal View History

<?
namespace controller\ms\portal;
use ms\ms\structure\msControllerTable;
use ms\Portal;
class Api extends msControllerTable {
static $class = 'ms\Portal';
static function getMyList(){
$res = [];
if(IF_AUTH){
$r = Portal::select([
\Query::WHERE => new \Where(\Where::_operator(Portal::$ACCOUNT,'=',UID))
]);
while($l = \DB::fetch($r)){
$res[] = Portal::format($l);
}
}
echo je($res);
}
}