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


PHP PluginEngine::getURL方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     if ($GLOBALS['perm']->have_perm("autor")) {
         $topicon = new Navigation(_("Lernmaterialien"), PluginEngine::getURL($this, array(), "market/overview"));
         $topicon->setImage(Icon::create('service', 'navigation'));
         Navigation::addItem("/lernmarktplatz", $topicon);
         Navigation::addItem("/lernmarktplatz/overview", new Navigation(_("Lernmarktplatz"), PluginEngine::getURL($this, array(), "market/overview")));
         Navigation::addItem("/lernmarktplatz/mymaterial", new Navigation(_("Meine Materialien"), PluginEngine::getURL($this, array(), "mymaterial/overview")));
     }
     if ($GLOBALS['perm']->have_perm("root")) {
         $tab = new Navigation(_("Lernmarktplatz"), PluginEngine::getURL($this, array(), "admin/hosts"));
         Navigation::addItem("/admin/config/lernmarktplatz", $tab);
     }
     if (UpdateInformation::isCollecting() && stripos(Request::get("page"), "plugins.php/lernmarktplatz/market/discussion/") !== false) {
         $data = Request::getArray("page_info");
         $last_update = Request::get("server_timestamp", time() - 30);
         $review_id = $data['Lernmarktplatz']['review_id'];
         $output = array('comments' => array());
         $comments = LernmarktplatzComment::findBySQL("review_id = :review_id AND mkdate >= :last_update ORDER BY mkdate ASC", array('last_update' => $last_update, 'review_id' => $review_id));
         $tf = new Flexi_TemplateFactory(__DIR__ . "/views");
         foreach ($comments as $comment) {
             $template = $tf->open("market/_comment.php");
             $template->set_attribute('comment', $comment);
             $output['comments'][] = array('comment_id' => $comment->getId(), 'html' => $template->render());
         }
         UpdateInformation::setInformation("Lernmarktplatz.update", $output);
     }
 }
开发者ID:Krassmus,项目名称:LehrMarktplatz,代码行数:29,代码来源:LernMarktplatz.class.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     if (false) {
         //Suche ersetzen
         if (Navigation::hasItem("/search")) {
             $nav = Navigation::getItem("/search");
             $nav->setURL(PluginEngine::getURL($this, array(), "search"));
             foreach ($nav->getSubNavigation() as $name => $nav_object) {
                 $nav->removeSubNavigation($name);
             }
             $tab = new AutoNavigation(_("Suche"), PluginEngine::getURL($this, array(), "search"));
             $nav->addSubNavigation('search', $tab);
         }
     } else {
         //Suche erweitern
         if (Navigation::hasItem("/search")) {
             $nav = Navigation::getItem("/search");
             $nav->setURL(PluginEngine::getURL($this, array(), "search"));
             $tab = new AutoNavigation(_("Suche"), PluginEngine::getURL($this, array(), "search"));
             $nav->addSubNavigation('search', $tab);
         }
     }
     //Observer definieren:
     NotificationCenter::addObserver($this, "show_user_avatar", "WillDisplaySearchResultItem");
     NotificationCenter::addObserver($this, "show_seminar_avatar", "WillDisplaySearchResultItem");
     NotificationCenter::addObserver($this, "show_document_avatar", "WillDisplaySearchResultItem");
     NotificationCenter::addObserver($this, "add_calculator", "LastAlteringOfSearchResults");
     NotificationCenter::addObserver($this, "filter_study_areas", "GlobalSearchFilter");
 }
开发者ID:noackorama,项目名称:GlobalSearchPlugin,代码行数:30,代码来源:GlobalSearchPlugin.class.php

示例3: perform

 function perform($unconsumed_path)
 {
     $trails_root = $this->getPluginPath() . "/app";
     $dispatcher = new Trails_Dispatcher($trails_root, rtrim(PluginEngine::getURL($this, null, ''), '/'), self::DEFAULT_CONTROLLER);
     $dispatcher->plugin = $this;
     $dispatcher->dispatch($unconsumed_path);
 }
开发者ID:swindhab,项目名称:CliqrPlugin,代码行数:7,代码来源:CliqrPlugin.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $nav = new Navigation(_("Downloads"), PluginEngine::getURL($this, array(), "downloadarea/overview"));
     $nav->setImage(Icon::create("download", "navigation"));
     Navigation::addItem("/downloader", $nav);
 }
开发者ID:studip,项目名称:StudipDownloader,代码行数:7,代码来源:StudipDownloader.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $top = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array('view' => 'tiles'), "presenting/overview"));
     $top->setImage(Icon::create($this->getPluginURL() . "/assets/topicon.svg"));
     $overview = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array(), "presenting/overview"));
     $top->addSubNavigation("presenting", $overview);
     $overview->addSubNavigation("overview", new AutoNavigation(_('Übersicht'), PluginEngine::getURL($this, array(), "presenting/overview")));
     $overview->addSubNavigation("all", new AutoNavigation(_('Alle Plugins'), PluginEngine::getURL($this, array(), "presenting/all")));
     $overview->addSubNavigation("tools", new AutoNavigation(_('Tools'), PluginEngine::getURL($this, array(), "tools/sidebar_graphics_generator")));
     if ($GLOBALS['perm']->have_perm("autor")) {
         $top->addSubNavigation("myplugins", new Navigation(_("Meine Plugins"), PluginEngine::getURL($this, array(), "myplugins/overview")));
     }
     if ($GLOBALS['perm']->have_perm("user")) {
         $last_visit = UserConfig::get($GLOBALS['user']->id)->getValue("last_pluginmarket_visit");
         if ($last_visit) {
             $badge_number = MarketPlugin::countBySql("publiclyvisible = 1 AND approved = 1 AND published > ?", array($last_visit));
             if ($badge_number > 0) {
                 $top->setBadgeNumber($badge_number);
             }
         }
     }
     if ($GLOBALS['perm']->have_perm("root")) {
         $approving = new Navigation(_("Qualitätssicherung"), PluginEngine::getURL($this, array(), "approving/overview"));
         $top->addSubNavigation("approving", $approving);
     }
     Navigation::addItem("/pluginmarket", $top);
     $loginlink = new Navigation($this->getDisplayTitle(), PluginEngine::getURL($this, array(), "presenting/overview"));
     $loginlink->setDescription(_("Laden Sie hier Plugins für Ihr Stud.IP herunter"));
     Navigation::addItem("/login/pluginmarket", $loginlink);
     NotificationCenter::addObserver($this, "triggerFollowingStudips", "PluginReleaseDidUpdateCode");
 }
开发者ID:studip,项目名称:PluginMarket,代码行数:32,代码来源:PluginMarket.class.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     if ($GLOBALS['perm']->have_perm("root")) {
         $processes = FleximportProcess::findBySQL("1=1 ORDER BY name ASC");
         $navigation = new Navigation($this->getDisplayName());
         $navigation->setURL(PluginEngine::getURL($this, array(), 'import/overview' . (count($processes) ? "/" . $processes[0]['process_id'] : "")));
         Navigation::addItem('/start/fleximport', $navigation);
         Navigation::addItem('/fleximport', $navigation);
         if (count($processes)) {
             foreach ($processes as $process) {
                 $navigation = new Navigation($process['name'], PluginEngine::getURL($this, array(), 'import/overview/' . $process->getId()));
                 Navigation::addItem('/fleximport/process_' . $process->getId(), $navigation);
             }
         } else {
             $navigation = new Navigation(_("Import"), PluginEngine::getURL($this, array(), 'import/overview'));
             Navigation::addItem('/fleximport/overview', $navigation);
         }
         $navigation = new Navigation(_("Konfiguration"), PluginEngine::getURL($this, array(), 'config/overview'));
         Navigation::addItem('/fleximport/config', $navigation);
         if (FleximportConfig::get("DISPLAY_AT_HEADER")) {
             if (is_numeric(FleximportConfig::get("DISPLAY_AT_HEADER"))) {
                 Navigation::getItem('/fleximport')->setImage(version_compare($GLOBALS['SOFTWARE_VERSION'], "3.4", ">=") ? Icon::create("install", "navigation") : Assets::image_path("icons/lightblue/install.svg"));
             } else {
                 Navigation::getItem('/fleximport')->setImage(version_compare($GLOBALS['SOFTWARE_VERSION'], "3.4", ">=") ? Icon::create(FleximportConfig::get("DISPLAY_AT_HEADER"), "navigation") : FleximportConfig::get("DISPLAY_AT_HEADER"));
             }
         }
     }
 }
开发者ID:Krassmus,项目名称:Fleximport,代码行数:29,代码来源:Fleximport.class.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     if ($GLOBALS['perm']->have_perm("root")) {
         $nav = new Navigation(_("Datenbank"), PluginEngine::getURL($this, array(), "database/overview"));
         Navigation::addItem("/admin/adminer", $nav);
     }
 }
开发者ID:Krassmus,项目名称:DatabaseAdminer,代码行数:8,代码来源:DatabaseAdminer.class.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addStylesheet("assets/defaultform.less");
     $nav = new Navigation(_("DefaultForm"), PluginEngine::getURL($this, array(), "example/index"));
     Navigation::addItem("/start/defaultform", $nav);
     $nav = clone $nav;
     $nav->addSubNavigation("index", clone $nav);
     Navigation::addItem("/defaultform", $nav);
 }
开发者ID:Krassmus,项目名称:DefaultForm,代码行数:10,代码来源:DefaultForm.class.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->raumbelegung = new raumbelegung();
     //Navigationselement AutoNavigation
     $navigation = new AutoNavigation($this->getDisplayName(), PluginEngine::getURL($this, array(), "show"));
     $tools = new AutoNavigation("Tools", PluginEngine::getURL($this, array(), "start"));
     //Punkt an dem das Elements eingesetzt werden soll
     Navigation::addItem('/start/Raumbelgungen/', clone $navigation);
 }
开发者ID:robert-hanke,项目名称:Raumbelegungen,代码行数:10,代码来源:raumbelegungen.class.php

示例10: like

 /**
  * Set the posting denoted by the passed topic_id as liked for the
  * currently logged in user
  * 
  * @param string $topic_id
  */
 static function like($topic_id)
 {
     $stmt = DBManager::get()->prepare("REPLACE INTO\n            forum_likes (topic_id, user_id)\n            VALUES (?, ?)");
     $stmt->execute(array($topic_id, $GLOBALS['user']->id));
     // get posting owner
     $data = ForumEntry::getConstraints($topic_id);
     // notify owner of posting about the like
     setTempLanguage($data['user_id']);
     $notification = get_fullname($GLOBALS['user']->id) . _(' gefällt einer deiner Forenbeiträge!');
     restoreLanguage();
     PersonalNotifications::add($data['user_id'], PluginEngine::getURL('coreforum/index/index/' . $topic_id . '?highlight_topic=' . $topic_id . '#' . $topic_id), $notification, $topic_id, Icon::create('forum', 'clickable')->asImagePath(40));
 }
开发者ID:ratbird,项目名称:hope,代码行数:18,代码来源:ForumLike.php

示例11: url_for

 function url_for($to)
 {
     $args = func_get_args();
     # find params
     $params = array();
     if (is_array(end($args))) {
         $params = array_pop($args);
     }
     # urlencode all but the first argument
     $args = array_map('urlencode', $args);
     $args[0] = $to;
     return PluginEngine::getURL($this->dispatcher->current_plugin, $params, join('/', $args));
 }
开发者ID:ratbird,项目名称:hope,代码行数:13,代码来源:forum_controller.php

示例12: __construct

 /**
  * @var Container
  */
 public function __construct()
 {
     parent::__construct();
     global $perm;
     $this->course = Course::findCurrent();
     $this->course_id = $this->course->id;
     $this->course = Course::findCurrent();
     if ($this->course) {
         $this->setupStudIPNavigation();
         if (Navigation::hasItem('/course/admin') && $perm->have_studip_perm('dozent', $this->course_id)) {
             $url = PluginEngine::getURL($this);
             $scormItem = new Navigation(_('Inhaltselemente bearbeiten'), $url);
             Navigation::addItem('/course/admin/seminar_tabs', $scormItem);
         } else {
             if (Navigation::hasItem('/admin/course/details')) {
                 $url = PluginEngine::getURL($this);
                 $scormItem = new Navigation(_('Inhaltselemente bearbeiten'), $url);
                 Navigation::addItem('/admin/course/seminar_tabs', $scormItem);
             }
         }
     }
 }
开发者ID:anantace,项目名称:SeminarTabs,代码行数:25,代码来源:SeminarTabs.php

示例13: if

            <? if ($section == 'index' && $perms['edit']) : ?>
                <?php 
echo Studip\LinkButton::create(_('Beitrag bearbeiten'), PluginEngine::getUrl('coreforum/index/index/' . $post['topic_id'] . '/?edit_posting=' . $post['topic_id']), array('onClick' => "STUDIP.Forum.editEntry('" . $post['topic_id'] . "'); return false;", 'class' => !$perms['edit_closed'] ? 'hideWhenClosed' : '', 'style' => !$can_edit_closed ? 'display: none' : ''));
?>
            <? endif ?>
            
            <? if ($section == 'index') : ?>
            <span <?php 
echo !$perms['edit_close'] && !$perms['remove_entry'] ? 'class="hideWhenClosed"' : '';
?>
                <?php 
echo !$perms['edit'] && !$perms['remove_entry'] ? 'style="display: none"' : '';
?>
>
                <? $confirmLink = PluginEngine::getURL('coreforum/index/delete_entry/' . $post['topic_id'])  ?>
                <? $confirmLinkApproved = PluginEngine::getURL('coreforum/index/delete_entry/' . $post['topic_id'] . '?approve_delete=1')  ?>
                <? if ($constraint['depth'] == $post['depth']) : /* this is not only a posting, but a thread */ ?>
                    <? $confirmText = _('Wenn Sie diesen Beitrag löschen wird ebenfalls das gesamte Thema gelöscht. Sind Sie sicher, dass Sie das tun möchten?')  ?>
                    <?php 
echo Studip\LinkButton::create(_('Thema löschen'), $confirmLink, array('onClick' => "STUDIP.Forum.showDialog('{$confirmText}', '{$confirmLinkApproved}'); return false;"));
?>
                <? else : ?>
                    <? $confirmText = _('Möchten Sie diesen Beitrag wirklich löschen?') ?>
                    <?php 
echo Studip\LinkButton::create(_('Beitrag löschen'), $confirmLink, array('onClick' => "STUDIP.Forum.showDialog('{$confirmText}', '{$confirmLinkApproved}'); return false;"));
?>
                <? endif ?>
            </span>
            <? endif ?>

            <? if (ForumPerm::has('forward_entry', $seminar_id)) : ?>
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:_post.php

示例14: if

                        <? if ($entry['sticky'] == 0) : ?>
                            <a href="<?php 
echo PluginEngine::getURL('coreforum/index/make_sticky/' . $entry['topic_id'] . '/' . $constraint['topic_id'] . '/0');
?>
" 
                                id="stickyButton-<?php 
echo $entry['topic_id'];
?>
">
                                <?php 
echo Icon::create('staple', 'clickable', ['title' => _('Thema hervorheben')])->asImg(16);
?>
                            </a>
                        <? else : ?>
                            <a href="<?php 
echo PluginEngine::getURL('coreforum/index/make_unsticky/' . $entry['topic_id'] . '/' . $constraint['topic_id'] . '/0');
?>
" 
                                id="stickyButton-<?php 
echo $entry['topic_id'];
?>
">
                                <?php 
echo Icon::create('staple', 'clickable', ['title' => _('Hervorhebung aufheben')])->asImg(16);
?>
                            </a>
                        <? endif ?>
                    <? endif ?>
                </span>

                <?php 
开发者ID:ratbird,项目名称:hope,代码行数:31,代码来源:_threads.php

示例15: getURL

 /**
  * Return the current URL associated with this navigation item.
  *
  * @deprecated
  */
 function getURL()
 {
     return PluginEngine::getURL($this->plugin, $this->params, $this->cmd);
 }
开发者ID:ratbird,项目名称:hope,代码行数:9,代码来源:PluginNavigation.class.php


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