本文整理汇总了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;
}
示例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);
}
示例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();
}
示例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"];
}
}
示例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);
}
}
示例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("<", ">"), $structure["data-title"]));
$titleArr[] = array("key" => $titleIdentifier, "title" => $structure["data-title"]);
}
$data["deftitle"] = $defTitleArr;
$data["title"] = $titleArr;
}
$data["lang"] = $lang;
return $data;
}
示例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");
}
}
}
}
示例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);
}
示例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())));
}
示例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()));
}
}
示例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;
}
示例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));
}
示例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);
}
示例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);
}
示例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;
}