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


PHP PHPWS_Text::backLink方法代码示例

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


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

示例1: showDependedUpon

 public static function showDependedUpon($base_mod)
 {
     PHPWS_Core::initCoreClass('Module.php');
     $module = new PHPWS_Module($base_mod);
     $dependents = $module->isDependedUpon();
     if (empty($dependents)) {
         return dgettext('boost', 'This module does not have dependents.');
     }
     $template['TITLE'] = sprintf(dgettext('boost', '%s Dependencies'), $module->getProperName());
     $content[] = PHPWS_Text::backLink() . '<br />';
     $content[] = dgettext('boost', 'The following modules depend on this module to function:');
     foreach ($dependents as $mod) {
         $dep_module = new PHPWS_Module($mod);
         $content[] = $dep_module->getProperName();
     }
     $content[] = PHPWS_Boost::uninstallLink($base_mod);
     $template['CONTENT'] = implode('<br />', $content);
     return PHPWS_Template::process($template, 'boost', 'main.tpl');
 }
开发者ID:HaldunA,项目名称:phpwebsite,代码行数:19,代码来源:Action.php

示例2: event

 public function event($js = false)
 {
     PHPWS_Core::initModClass('calendar', 'Event.php');
     if (!$this->event->id) {
         PHPWS_Core::errorPage('404');
     }
     $template = $this->event->getTpl();
     if ($js) {
         $template['CLOSE_WINDOW'] = javascript('close_window', array('value' => dgettext('calendar', 'Close')));
     } else {
         $template['BACK_LINK'] = PHPWS_Text::backLink(dgettext('calendar', 'Back'));
     }
     $template['DOWNLOAD'] = $this->eventDownloadLink($this->event->id);
     $template['VIEW_LINKS'] = $this->viewLinks('event');
     return PHPWS_Template::process($template, 'calendar', 'view/event.tpl');
 }
开发者ID:par-orillonsoft,项目名称:phpwebsite,代码行数:16,代码来源:User.php

示例3: getTpl

 public function getTpl()
 {
     javascript('jquery');
     $tpl = $this->tplFormatTime();
     if ($this->show_busy && !$this->_schedule->checkPermissions()) {
         $tpl['SUMMARY'] = dgettext('calendar', 'Busy');
         $tpl['DESCRIPTION'] = null;
     } else {
         $tpl['SUMMARY'] = $this->getSummary();
         $tpl['DESCRIPTION'] = $this->getDescription();
     }
     if ($this->_schedule->checkPermissions()) {
         $link[] = $this->editLink('icon');
         $link[] = $this->deleteLink('icon');
         if (PHPWS_Core::moduleExists('blog')) {
             if (Current_User::allow('blog', 'edit_blog', null, null, true)) {
                 $link[] = $this->blogLink('icon');
             }
         }
         $tpl['LINKS'] = implode(' ', $link);
     }
     if (!empty($this->location)) {
         $tpl['LOCATION_LABEL'] = dgettext('calendar', 'Location');
         $tpl['LOCATION'] = $this->getLocation();
     }
     $tpl['BACK_LINK'] = PHPWS_Text::backLink();
     return $tpl;
 }
开发者ID:HaldunA,项目名称:phpwebsite,代码行数:28,代码来源:Event.php


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