当前位置: 首页>>代码示例>>PHP>>正文


PHP UserUtil::getManagerDeptSubUserByUid方法代码示例

本文整理汇总了PHP中UserUtil::getManagerDeptSubUserByUid方法的典型用法代码示例。如果您正苦于以下问题:PHP UserUtil::getManagerDeptSubUserByUid方法的具体用法?PHP UserUtil::getManagerDeptSubUserByUid怎么用?PHP UserUtil::getManagerDeptSubUserByUid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UserUtil的用法示例。


在下文中一共展示了UserUtil::getManagerDeptSubUserByUid方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: actionSubList

 public function actionSubList()
 {
     if (EnvUtil::getRequest("op") == "getsubordinates") {
         $this->getsubordinates();
         exit;
     }
     $getUid = intval(EnvUtil::getRequest("uid"));
     if (!$getUid) {
         $deptArr = UserUtil::getManagerDeptSubUserByUid(Ibos::app()->user->uid);
         if (!empty($deptArr)) {
             $firstDept = reset($deptArr);
             $uid = $firstDept["user"][0]["uid"];
         } else {
             $this->error(IBos::lang("You do not subordinate"), $this->createUrl("schedule/index"));
         }
     } else {
         $uid = $getUid;
     }
     if (!UserUtil::checkIsSub(Ibos::app()->user->uid, $uid)) {
         $this->error(Ibos::lang("No permission to view schedule"), $this->createUrl("schedule/index"));
     }
     $params = $this->getUnfinishedDataByUid($uid);
     $this->setPageTitle(Ibos::lang("Assignment"));
     $this->setPageState("breadCrumbs", array(array("name" => Ibos::lang("Assignment"), "url" => $this->createUrl("unfinished/index")), array("name" => Ibos::lang("Unfinished list"))));
     $this->render("sublist", $params);
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:26,代码来源:UnfinishedController.php

示例2: actionSubSchedule

 public function actionSubSchedule()
 {
     $op = EnvUtil::getRequest("op");
     if ($op == "getsubordinates") {
         $this->getsubordinates();
     } elseif ($op == "list") {
         $this->getList();
     } else {
         $workTime = Ibos::app()->setting->get("setting/calendarworkingtime");
         $workingtime = explode(",", $workTime);
         $setting = array("worktimestart" => $workingtime[0], "worktimeend" => $workingtime[1], "allowAdd" => CalendarUtil::getIsAllowAdd(), "allowEdit" => CalendarUtil::getIsAllowEdit());
         $getUid = EnvUtil::getRequest("uid");
         if (!$getUid) {
             $deptArr = UserUtil::getManagerDeptSubUserByUid($this->uid);
             if (!empty($deptArr)) {
                 $firstDept = reset($deptArr);
                 $uid = $firstDept["user"][0]["uid"];
             } else {
                 $this->error(IBos::lang("You do not subordinate"), $this->createUrl("schedule/index"));
             }
         } else {
             $uid = $getUid;
         }
         if (!UserUtil::checkIsSub(Ibos::app()->user->uid, $uid)) {
             $this->error(Ibos::lang("No permission to view schedule"), $this->createUrl("schedule/index"));
         }
         $data = array("setting" => $setting, "user" => User::model()->fetchByUid($uid), "supUid" => UserUtil::getSupUid($this->uid));
         $this->setPageTitle(Ibos::lang("Subordinate schedule"));
         $this->setPageState("breadCrumbs", array(array("name" => Ibos::lang("Personal Office")), array("name" => Ibos::lang("Calendar arrangement"), "url" => $this->createUrl("schedule/index")), array("name" => Ibos::lang("Subordinate schedule"))));
         $this->render("subschedule", $data);
     }
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:32,代码来源:ScheduleController.php

示例3: getSubSidebar

 protected function getSubSidebar()
 {
     $deptArr = UserUtil::getManagerDeptSubUserByUid(Ibos::app()->user->uid);
     $sidebarAlias = "application.modules.calendar.views.subsidebar";
     $sidebarView = $this->renderPartial($sidebarAlias, array("deptArr" => $deptArr), true);
     return $sidebarView;
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:7,代码来源:CalendarBaseController.php

示例4: getSidebar

 public function getSidebar()
 {
     $uid = Ibos::app()->user->uid;
     $deptArr = UserUtil::getManagerDeptSubUserByUid($uid);
     $sidebarAlias = "application.modules.report.views.stats.sidebar";
     $params = array("lang" => Ibos::getLangSource("report.default"), "deptArr" => $deptArr, "dashboardConfig" => $this->getReportConfig(), "statModule" => Ibos::app()->setting->get("setting/statmodules"));
     $sidebarView = $this->renderPartial($sidebarAlias, $params, false);
     return $sidebarView;
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:9,代码来源:StatsController.php

示例5: getSubSidebar

 protected function getSubSidebar()
 {
     $uid = Ibos::app()->user->uid;
     $deptArr = UserUtil::getManagerDeptSubUserByUid($uid);
     $params = array("deptArr" => $deptArr, "unfinishCount" => Assignment::model()->getUnfinishCountByUid($uid));
     $sidebarAlias = "application.modules.assignment.views.subsidebar";
     $sidebarView = $this->renderPartial($sidebarAlias, $params, true);
     return $sidebarView;
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:9,代码来源:AssignmentBaseController.php

示例6: getSidebar

 public function getSidebar($getUid, $getUser)
 {
     $uid = Ibos::app()->user->uid;
     if (!empty($getUid)) {
         $subUids = $getUid;
     } elseif (!empty($getUser)) {
         $subUids = ConvertUtil::getSubByKey($getUser, "uid");
     } else {
         $subUids = UserUtil::getAllSubs($uid, "", true);
     }
     $deptArr = UserUtil::getManagerDeptSubUserByUid($uid);
     $sidebarAlias = "application.modules.report.views.review.sidebar";
     $params = array("statModule" => Ibos::app()->setting->get("setting/statmodules"), "lang" => Ibos::getLangSource("report.default"), "deptArr" => $deptArr, "dashboardConfig" => $this->getReportConfig(), "reportTypes" => ReportType::model()->fetchAllTypeByUid($subUids));
     $sidebarView = $this->renderPartial($sidebarAlias, $params, false);
     return $sidebarView;
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:16,代码来源:ReviewController.php

示例7: run

 public function run()
 {
     $data = array("typeid" => EnvUtil::getRequest("typeid"), "lang" => Ibos::getLangSource("report.default"), "deptArr" => UserUtil::getManagerDeptSubUserByUid(Ibos::app()->user->uid), "dashboardConfig" => ReportUtil::getSetting(), "deptRoute" => $this->inStats() ? "stats/review" : "review/index", "userRoute" => $this->inStats() ? "stats/review" : "review/personal");
     $this->render(self::VIEW, $data);
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:5,代码来源:IWReportSublist.php

示例8: run

 public function run()
 {
     $data = array("deptArr" => UserUtil::getManagerDeptSubUserByUid(Ibos::app()->user->uid), "dashboardConfig" => DiaryUtil::getSetting(), "deptRoute" => $this->inStats() ? "stats/review" : "review/index", "userRoute" => $this->inStats() ? "stats/review" : "review/personal", "fromController" => $this->getController()->getId());
     $this->render(self::VIEW, $data);
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:5,代码来源:IWDiarySublist.php


注:本文中的UserUtil::getManagerDeptSubUserByUid方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。