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


PHP navigation_node::fullmeurl方法代码示例

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


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

示例1: override_active_url

 /**
  * This sets the URL that the URL of new nodes get compared to when locating
  * the active node.
  *
  * The active node is the node that matches the URL set here. By default this
  * is either $PAGE->url or if that hasn't been set $FULLME.
  *
  * @param moodle_url $url The url to use for the fullmeurl.
  */
 public static function override_active_url(moodle_url $url)
 {
     // Clone the URL, in case the calling script changes their URL later.
     self::$fullmeurl = new moodle_url($url);
 }
开发者ID:saurabh947,项目名称:MoodleLearning,代码行数:14,代码来源:navigationlib.php

示例2: override_active_url

 /**
  * This sets the URL that the URL of new nodes get compared to when locating
  * the active node.
  *
  * The active node is the node that matches the URL set here. By default this
  * is either $PAGE->url or if that hasn't been set $FULLME.
  *
  * @param moodle_url $url The url to use for the fullmeurl.
  * @param bool $loadadmintree use true if the URL point to administration tree
  */
 public static function override_active_url(moodle_url $url, $loadadmintree = false)
 {
     // Clone the URL, in case the calling script changes their URL later.
     self::$fullmeurl = new moodle_url($url);
     // True means we do not want AJAX loaded admin tree, required for all admin pages.
     if ($loadadmintree) {
         // Do not change back to false if already set.
         self::$loadadmintree = true;
     }
 }
开发者ID:evltuma,项目名称:moodle,代码行数:20,代码来源:navigationlib.php


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