本文整理汇总了PHP中Ibos::getLangSource方法的典型用法代码示例。如果您正苦于以下问题:PHP Ibos::getLangSource方法的具体用法?PHP Ibos::getLangSource怎么用?PHP Ibos::getLangSource使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ibos
的用法示例。
在下文中一共展示了Ibos::getLangSource方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderIndex
public function renderIndex()
{
$data = array("todo" => $this->loadTodo(), "lang" => Ibos::getLangSource("workflow.default"), "assetUrl" => Ibos::app()->assetManager->getAssetsUrl("workflow"));
$viewAlias = "application.modules.workflow.views.indexapi.workflow";
$return["workflow"] = Ibos::app()->getController()->renderPartial($viewAlias, $data, true);
return $return;
}
示例2: renderIndex
public function renderIndex()
{
$data = array("articles" => $this->loadNewArticle(), "lang" => Ibos::getLangSource("article.default"), "assetUrl" => Ibos::app()->assetManager->getAssetsUrl("article"));
$viewAlias = "application.modules.article.views.indexapi.article";
$return["article"] = Ibos::app()->getController()->renderPartial($viewAlias, $data, true);
return $return;
}
示例3: getSidebar
protected function getSidebar()
{
$sidebarAlias = "application.modules.calendar.views.sidebar";
$params = array("hasSubUid" => UserUtil::hasSubUid(Ibos::app()->user->uid), "lang" => Ibos::getLangSource("calendar.default"));
$sidebarView = $this->renderPartial($sidebarAlias, $params, true);
return $sidebarView;
}
示例4: renderIndex
public function renderIndex()
{
$data = array("schedules" => $this->loadNewSchedules(), "lant" => Ibos::getLangSource("calendar.default"), "assetUrl" => Yii::app()->assetManager->getAssetsUrl("calendar"));
$viewAlias = "application.modules.calendar.views.indexapi.schedule";
$return["calendar"] = Yii::app()->getController()->renderPartial($viewAlias, $data, true);
return $return;
}
示例5: renderIndex
public function renderIndex()
{
$data = array("docs" => $this->loadNewDoc(), "lang" => Ibos::getLangSource("officialdoc.default"), "assetUrl" => Yii::app()->assetManager->getAssetsUrl("officialdoc"));
$viewAlias = "application.modules.officialdoc.views.indexapi.officialdoc";
$return["officialdoc"] = Yii::app()->getController()->renderPartial($viewAlias, $data, true);
return $return;
}
示例6: getIncentiveWord
public static function getIncentiveWord()
{
$words = Ibos::getLangSource("incentiveword");
$luckyOne = array_rand($words);
$source = $words[$luckyOne];
return Ibos::lang("Custom title", "main.default") . $source[array_rand($source)];
}
示例7: showDetail
protected function showDetail()
{
$repid = intval(EnvUtil::getRequest("repid"));
$isShowTitle = EnvUtil::getRequest("isShowTitle");
$fromController = EnvUtil::getRequest("fromController");
$report = Report::model()->fetchByPk($repid);
$uid = Ibos::app()->user->uid;
Report::model()->addReaderuid($report, $uid);
$record = ReportRecord::model()->fetchAllRecordByRep($report);
$attachs = array();
if (!empty($report["attachmentid"])) {
$attachs = AttachUtil::getAttach($report["attachmentid"], true, true, false, false, true);
}
$readers = array();
if (!empty($report["readeruid"])) {
$readerArr = explode(",", $report["readeruid"]);
$readers = User::model()->fetchAllByPk($readerArr);
}
$stampUrl = "";
if ($report["stamp"] != 0) {
$stamp = Stamp::model()->fetchStampById($report["stamp"]);
$stampUrl = FileUtil::fileName(Stamp::STAMP_PATH) . $stamp;
}
$report["addtime"] = ConvertUtil::formatDate($report["addtime"], "u");
$params = array("lang" => Ibos::getLangSource("report.default"), "repid" => $repid, "report" => $report, "uid" => $uid, "orgPlanList" => $record["orgPlanList"], "outSidePlanList" => $record["outSidePlanList"], "nextPlanList" => $record["nextPlanList"], "attachs" => $attachs, "readers" => $readers, "stampUrl" => $stampUrl, "fromController" => $fromController, "isShowTitle" => $isShowTitle, "allowComment" => $this->getIsAllowComment($fromController));
$detailAlias = "application.modules.report.views.detail";
$detailView = $this->renderPartial($detailAlias, $params, true);
$this->ajaxReturn(array("data" => $detailView, "isSuccess" => true));
}
示例8: renderIndex
public function renderIndex()
{
$return = array();
$viewAlias = "application.modules.report.views.indexapi.report";
$uid = Ibos::app()->user->uid;
$reports = Report::model()->fetchAllRepByUids($uid);
if (!empty($reports)) {
$reports = $this->handleIconUrl($reports);
}
$subUidArr = User::model()->fetchSubUidByUid($uid);
$subUidStr = implode(",", $subUidArr);
$subReports = Report::model()->fetchAll("FIND_IN_SET(`uid`, '{$subUidStr}') OR FIND_IN_SET({$uid}, `toid`)");
if (!empty($subReports)) {
$subReports = $this->handleIconUrl($subReports, true);
}
$data = array("reports" => $reports, "subReports" => $subReports, "lang" => Ibos::getLangSource("report.default"), "assetUrl" => Yii::app()->assetManager->getAssetsUrl("report"));
foreach ($this->_indexTab as $tab) {
$data["tab"] = $tab;
if ($tab == "reportPersonal") {
$return[$tab] = Yii::app()->getController()->renderPartial($viewAlias, $data, true);
} else {
if ($tab == "reportAppraise" && (0 < count($subUidArr) || !empty($subReports))) {
$return[$tab] = Yii::app()->getController()->renderPartial($viewAlias, $data, true);
}
}
}
return $return;
}
示例9: getSidebar
public function getSidebar()
{
$sidebarAlias = "application.modules.recruit.views.resume.sidebar";
$params = array("lang" => Ibos::getLangSource("recruit.default"), "statModule" => Ibos::app()->setting->get("setting/statmodules"));
$sidebarView = $this->renderPartial($sidebarAlias, $params, false);
return $sidebarView;
}
示例10: run
public function run()
{
$id = $this->getController()->getId();
$action = $this->getController()->getAction()->getId();
$data = array("inPersonal" => $id == "stats" && $action == "personal", "inReview" => $id == "stats" && $action == "review", "hasSub" => $this->getHasSub(), "lang" => Ibos::getLangSource("report.default"));
$this->render(self::VIEW, $data);
}
示例11: getSidebar
public function getSidebar()
{
$sidebarAlias = "application.modules.report.views.sidebar";
$uid = Ibos::app()->user->uid;
$params = array("statModule" => Ibos::app()->setting->get("setting/statmodules"), "lang" => Ibos::getLangSource("report.default"), "reportTypes" => ReportType::model()->fetchAllTypeByUid($uid));
$sidebarView = $this->renderPartial($sidebarAlias, $params);
return $sidebarView;
}
示例12: 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;
}
示例13: actionApplist
public function actionApplist()
{
$detailAlias = "application.modules.app.views.default.applist";
$category = AppCategory::model()->fetchAllSort();
foreach ($category as $key => $value) {
$category[$key]["count"] = App::model()->count("catid = {$value["catid"]}");
}
$params = array("lang" => Ibos::getLangSource("app.default"), "assetUrl" => Ibos::app()->assetManager->getAssetsUrl("app"), "category" => $category, "appCount" => App::model()->count("appid"));
$detailView = $this->renderPartial($detailAlias, $params, true);
echo $detailView;
}
示例14: renderIndex
public function renderIndex()
{
$data = array("lant" => Ibos::getLangSource("recruit.default"), "assetUrl" => Yii::app()->assetManager->getAssetUrl("recruit"));
foreach ($this->_indexTab as $tab) {
$data["recruits"] = $this->loadRecruit($tab);
$data["tab"] = $tab;
}
$viewAlias = "application.modules.recruit.views.indexapi.recruit";
$return["recruit"] = Yii::app()->getController()->renderPartial($viewAlias, $data, true);
return $return;
}
示例15: renderIndex
public function renderIndex()
{
$return = array();
$viewAlias = "application.modules.email.views.indexapi.email";
$data["lang"] = Ibos::getLangSource("email.default");
$data["assetUrl"] = Ibos::app()->assetManager->getAssetsUrl("email");
foreach ($this->_indexTab as $tab) {
$data["emails"] = $this->loadEmail($tab);
$data["tab"] = $tab;
$return[$tab] = Ibos::app()->getController()->renderPartial($viewAlias, $data, true);
}
return $return;
}