Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * 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;
     }
 }