29 lines
521 B
PHP
29 lines
521 B
PHP
<?
|
|
|
|
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);
|
|
}
|
|
|
|
}
|
|
|
|
|