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


PHP Ibos::getLangSources方法代码示例

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


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

示例1: init

 public function init()
 {
     $attach = $this->getAttach();
     $var = array("assetUrl" => $this->getController()->getAssetUrl(), "lang" => Ibos::getLangSources(), "attach" => $attach, "param" => $this->getParam(), "isNew" => empty($attach));
     $var = array_merge($this->getDocFile($var), $var);
     $this->_var = $var;
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:7,代码来源:IWMainOffice.php

示例2: run

 public function run()
 {
     $module = $this->getController()->getModule()->getId();
     $timeRoute = $this->getTimeRoute($module);
     $data = array("module" => $module, "timeRoute" => $timeRoute, "lang" => Ibos::getLangSources(array("diary.default")), "time" => StatCommonUtil::getCommonTimeScope());
     $this->render(self::VIEW, $data);
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:7,代码来源:IWStatDiaryHeader.php

示例3: init

 public function init()
 {
     $key = $this->getKey();
     $flow = new ICFlowType(intval($key["flowid"]), true);
     $this->_var = array_merge($key, array("lang" => Ibos::getLangSources(), "flow" => $flow, "key" => $this->makeKey($key), "flowName" => $flow->name, "freePreset" => $flow->freepreset, "runName" => FlowRun::model()->fetchNameByRunID($key["runid"])));
     parent::init();
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:7,代码来源:IWWfFreeNext.php

示例4: run

 public function run()
 {
     $attr = $this->getAttributes();
     $map = array("module" => $this->getModule(), "table" => $this->getTable(), "rowid" => $attr["rowid"], "isdel" => 0);
     $attr["count"] = Comment::model()->countByAttributes($map);
     $list = $this->getCommentList();
     $isAdministrator = Ibos::app()->user->isadministrator;
     $uid = Ibos::app()->user->uid;
     foreach ($list as &$cm) {
         $cm["isCommentDel"] = $isAdministrator || $uid === $cm["uid"];
         $cm["replys"] = intval(Comment::model()->countByAttributes(array("module" => "message", "table" => "comment", "rowid" => $cm["cid"], "isdel" => 0)));
     }
     $attr["comments"] = $list;
     $attr["lang"] = Ibos::getLangSources(array("message.default"));
     $content = $this->render($this->getParseView("comment"), $attr, true);
     $ajax = $attr["inAjax"];
     $count = $attr["count"];
     unset($attr);
     $return = array("isSuccess" => true, "data" => $content, "count" => $count);
     if ($ajax == 1) {
         $this->getOwner()->ajaxReturn($return);
     } else {
         echo $return["data"];
     }
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:25,代码来源:IWArticleComment.php

示例5: actionAdd

 public function actionAdd()
 {
     $flowId = intval(EnvUtil::getRequest("flowid"));
     $flow = new ICFlowType($flowId);
     if (EnvUtil::submitCheck("formhash")) {
         $this->checkFlowAccess($flowId, 1, $this->createUrl("new/add"));
         $this->beforeAdd($_POST, $flow);
         $run = array("name" => $_POST["name"], "flowid" => $flowId, "beginuser" => $this->uid, "begintime" => TIMESTAMP);
         $runId = FlowRun::model()->add($run, true);
         $runProcess = array("runid" => $runId, "processid" => 1, "uid" => $this->uid, "flag" => FlowConst::PRCS_UN_RECEIVE, "flowprocess" => 1, "createtime" => TIMESTAMP);
         FlowRunProcess::model()->add($runProcess);
         if (strstr($flow->autoname, "{N}")) {
             FlowType::model()->updateCounters(array("autonum" => 1), sprintf("flowid = %d", $flowId));
             CacheUtil::rm("flowtype_" . $flowId);
         }
         $runData = array("runid" => $runId, "name" => $_POST["name"], "beginuser" => $this->uid, "begin" => TIMESTAMP);
         $this->handleRunData($flow, $runData);
         $param = array("flowid" => $flowId, "runid" => $runId, "processid" => 1, "flowprocess" => 1, "fromnew" => 1);
         $jumpUrl = $this->createUrl("form/index", array("key" => WfCommonUtil::param($param)));
         $this->ajaxReturn(array("isSuccess" => true, "jumpUrl" => $jumpUrl));
     } else {
         $this->checkFlowAccess($flowId, 1);
         if (!empty($flow->autoname)) {
             $runName = WfNewUtil::replaceAutoName($flow, $this->uid);
         } else {
             $runName = sprintf("%s (%s)", $flow->name, date("Y-m-d H:i:s"));
         }
         $data = array("flow" => $flow->toArray(), "runName" => $runName, "lang" => Ibos::getLangSources());
         $this->renderPartial("add", $data);
     }
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:31,代码来源:NewController.php

示例6: handleTplData

 protected function handleTplData($flowId)
 {
     $data = array();
     $lang = Ibos::getLangSources();
     $flow = new ICFlowType($flowId);
     $flowArr = $flow->toArray();
     if (!empty($flowArr)) {
         $data["flow"] = $flowArr;
         $data["form"] = $flow->form->toArray();
         $formStructure = $flow->form->parser->getStructure();
         $defTitleArr = array(array("key" => "runid", "title" => $lang["Flow no"]), array("key" => "runname", "title" => $lang["Flow subject/num"]), array("key" => "runstatus", "title" => $lang["Flow status"]), array("key" => "rundate", "title" => $lang["Flow begin date"]), array("key" => "runtime", "title" => $lang["Flow begin time"]));
         $titleArr = array();
         $table = "flow_data_" . $flowId;
         foreach ($formStructure as $structure) {
             if ($structure["data-type"] == "sign" || $structure["data-type"] == "label") {
                 continue;
             }
             $titleIdentifier = sprintf("%s.%s", $table, "data_" . $structure["itemid"]);
             $structure["data-title"] = stripslashes(str_replace(array("<", ">"), array("&lt", "&gt"), $structure["data-title"]));
             $titleArr[] = array("key" => $titleIdentifier, "title" => $structure["data-title"]);
         }
         $data["deftitle"] = $defTitleArr;
         $data["title"] = $titleArr;
     }
     $data["lang"] = $lang;
     return $data;
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:27,代码来源:QuerytplController.php

示例7: actionEdit

 public function actionEdit()
 {
     $id = intval(EnvUtil::getRequest("id"));
     if ($id) {
         if (EnvUtil::submitCheck("formhash")) {
             $this->beforeSave();
             unset($_POST["id"]);
             $data = FlowPermission::model()->create();
             $status = FlowPermission::model()->modify($id, $data);
             $this->ajaxReturn(array("isSuccess" => !!$status));
         } else {
             $per = FlowPermission::model()->fetchByPk($id);
             if (!empty($per)) {
                 if ($per["deptid"] == "alldept") {
                     $users = "c_0";
                 } else {
                     $users = StringUtil::wrapId($per["uid"], "u") . "," . StringUtil::wrapId($per["deptid"], "d") . "," . StringUtil::wrapId($per["positionid"], "p");
                 }
                 $isCustom = !in_array($per["scope"], array("selforg", "alldept", "selfdeptall", "selfdept"));
                 $data = array("per" => $per, "lang" => Ibos::getLangSources(), "custom" => $isCustom, "users" => StringUtil::filterStr($users));
                 $this->renderPartial("edit", $data);
             } else {
                 $this->ajaxReturn(Ibos::lang("Parameters error", "error"), "eval");
             }
         }
     }
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:27,代码来源:ManagerController.php

示例8: run

 public function run()
 {
     $var["control"] = $this->getController()->getId();
     $var["lang"] = Ibos::getLangSources();
     $var["category"] = $this->getCategory();
     $var["catId"] = $this->getCatId();
     $this->render(self::VIEW, $var);
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:8,代码来源:IWWfListSidebar.php

示例9: run

 public function run()
 {
     $var["lang"] = Ibos::getLangSources();
     $var["type"] = $this->getType();
     $var["sort"] = $this->getSort();
     $var["op"] = $this->getOp();
     $this->render("wfwidget.categoryview", array_merge($this->_var, $var, $this->handleList($this->getRunProcess())));
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:8,代码来源:IWWfCategoryView.php

示例10: actionIndex

 public function actionIndex()
 {
     if (EnvUtil::getRequest("inajax") == 1) {
         $list = FlowTimer::model()->fetchAllByFlowId($this->flowid);
         $count = count($list);
         $this->ajaxReturn(array("count" => $count, "list" => $list));
     } else {
         $this->renderPartial("index", array("lang" => Ibos::getLangSources()));
     }
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:10,代码来源:TimerController.php

示例11: fetchCommentList

 public function fetchCommentList()
 {
     $count = $this->getCommentCount();
     $limit = $this->getAttributes("limit");
     $pages = PageUtil::create($count, $limit);
     $this->setAttributes(array("offset" => $pages->getOffset(), "limit" => $pages->getLimit()));
     $var = array("list" => $this->getCommentList(), "lang" => Ibos::getLangSources(array("message.default")), "count" => $count, "limit" => $limit, "rowid" => $this->getAttributes("rowid"), "moduleuid" => $this->getAttributes("moduleuid"), "showlist" => $this->getAttributes("showlist"), "pages" => $pages);
     $content = $this->render("application.modules.weibo.views.comment.loadreply", $var, true);
     return $content;
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:10,代码来源:IWWeiboComment.php

示例12: run

 public function run()
 {
     $this->setPages();
     $var["lang"] = Ibos::getLangSources();
     $var["list"] = $this->handleList($this->getRunProcess());
     $var["type"] = $this->getType();
     $var["sort"] = $this->getSort();
     $var["op"] = $this->getOp();
     $view = "wfwidget.list" . $this->getType();
     $this->render($view, array_merge($this->_var, $var));
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:11,代码来源:IWWfListView.php

示例13: render

 public function render($view, $data = null, $return = false, $langSources = array())
 {
     if (is_null($data)) {
         $data = array();
     }
     Ibos::app()->setting->set("pageTitle", $this->getPageTitle());
     Ibos::app()->setting->set("breadCrumbs", $this->getPageState("breadCrumbs", array()));
     $this->setPageState("breadCrumbs", null);
     !isset($data["assetUrl"]) && ($data["assetUrl"] = $this->getAssetUrl());
     $data["lang"] = Ibos::getLangSources($langSources);
     return parent::render($view, $data, $return);
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:12,代码来源:ICController.php

示例14: run

 public function run()
 {
     $module = $this->getController()->getModule()->getId();
     $timeRoute = $this->getTimeRoute($module);
     $type = $this->getType();
     $timestr = $this->getTimestr();
     if (empty($type)) {
         $type = "day";
     }
     if (empty($timestr)) {
         $timestr = "thisweek";
     }
     $data = array("module" => $module, "timeRoute" => $timeRoute, "lang" => Ibos::getLangSources(array("recruit.default")), "time" => StatCommonUtil::getCommonTimeScope(), "type" => $type, "timestr" => $timestr);
     $this->render(self::VIEW, $data);
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:15,代码来源:IWStatRecruitHeader.php

示例15: getSidebar

 protected function getSidebar($op = "")
 {
     $archiveTable = array();
     $settings = Yii::app()->setting->get("setting");
     $archiveTable["ids"] = $settings["emailtableids"] ? $settings["emailtableids"] : array();
     $archiveTable["info"] = $settings["emailtable_info"] ? $settings["emailtable_info"] : array();
     foreach ($archiveTable["ids"] as $tableId) {
         if ($tableId != 0 && empty($archiveTable["info"][$tableId]["displayname"])) {
             $archiveTable["info"][$tableId]["displayname"] = Ibos::lang("Unnamed archive") . "(" . $tableId . ")";
         }
     }
     $data = array("op" => $op, "uid" => $this->uid, "lang" => Ibos::getLangSources(), "folders" => $this->folders, "allowWebMail" => $this->allowWebMail, "webEmails" => $this->webMails, "fid" => $this->fid, "webId" => $this->webId, "archiveId" => $this->archiveId, "hasArchive" => 1 < count($archiveTable["ids"]), "archiveTable" => $archiveTable);
     $sidebarAlias = "application.modules.email.views.sidebar";
     $sidebarView = $this->renderPartial($sidebarAlias, $data, true);
     return $sidebarView;
 }
开发者ID:AxelPanda,项目名称:ibos,代码行数:16,代码来源:EmailBaseController.php


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