本文整理汇总了PHP中UserService::getList方法的典型用法代码示例。如果您正苦于以下问题:PHP UserService::getList方法的具体用法?PHP UserService::getList怎么用?PHP UserService::getList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserService
的用法示例。
在下文中一共展示了UserService::getList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doList
public function doList()
{
//list
$listPageHelper = new ListPageHelper();
$listPageHelper->pageSize = 10;
$pageNum = intval(Request::get("page"));
$listPageHelper->pageNum = $pageNum ? $pageNum : 1;
//Condition
$userCondition = new UserValue();
//get data
$userService = new UserService();
$userList = $userService->getList($userCondition, $listPageHelper);
$areaService = new AreaService();
$areaList = $areaService->getList(new AreaValue());
//view
View::set("AreaList", $areaList);
View::set("UserList", $userList);
View::set("ListPageHelper", $listPageHelper);
View::display("List");
}
示例2: doUpdate
public function doUpdate()
{
$projectService = new ProjectService();
$projectlist = $projectService->getList(new ProjectValue());
$areaService = new AreaService();
$arealist = $areaService->getList(new AreaValue());
$ordersService = new OrdersService();
$ordersId = intval(Request::get("update_orders_id"));
$ordersVo = $ordersService->getByPrimary($ordersId);
$userService = new UserService();
$userVo = $userService->getList(new UserValue());
View::set("UserList", $userVo);
View::set("OrdersUpdateValue", $ordersVo);
View::set("Arealist", $arealist);
View::set("Projectlist", $projectlist);
View::display("Update");
}