Get name of the link module;
@return string
340822
protected function getModule()
    {
        $module = \mpf\WebApp::get()->request()->getModule();
        if (isset($this->url[2]) && !is_array($this->url[2])) { // is module
            $module = $this->url[2];
        } elseif (isset($this->url[3]) && !is_array($this->url[3])) { // this is module then
            $module = $this->url[3];
        }
        return $module;
    }
470235
final public function getLongName()
    {
        $name = ($this->module ? $this->module->getName() . '/' : '') . $this->getName();
        return $this->action ? $name . '/' . $this->getAction() : $name;
    }
559152
public function getModuleNames()
    {
        $data = [];
        foreach (Yii::$app->getFrontendModules() as $k => $f) {
            $data[] = ['value' => $k, 'label' => $k];
        }
        return $data;
    }
738688
protected function getFigcaptionLink()
    {
        $link = '';

        if ($this->hasAttribute('linkUrl')) {
            $link = '<a class="code-highlight-caption-link" href="'
                . $this->getAttribute('linkUrl')
                . '">';
            $link .= $this->getFigcaptionLinkText();
            $link .= '</a>';
        }

        return $link;
    }
288198
public function get_url() {
        // Entry does not exist any more, returning link to the module view page in the mode it was before deleting entry.
        $params = array('id' => $this->contextinstanceid);
        if (isset($this->other['hook'])) {
            $params['hook'] = $this->other['hook'];
        }
        if (isset($this->other['mode'])) {
            $params['mode'] = $this->other['mode'];
        }
        return new \moodle_url("/mod/glossary/view.php", $params);
    }
375240
public function getModulesPath()
    {
        $paths = $this->locator->getModulesPath();
        foreach (array_keys($paths) as $module) {
            $paths[$module] .= DIRECTORY_SEPARATOR . TemplateReference::MODULE_VIEWS_DIRECTORY;
        }

        return $paths;
    }
338213
public function getModuleName()
    {
        $module = $this->argument('module') ?: $this->laravel['modules']->getUsedNow();

        $module = $this->laravel['modules']->findOrFail($module);

        return $module->getStudlyName();
    }
453881
protected function getLink()
    {
        if ($this->link_value === null) {
            $link = $this->link;
        } elseif (is_array($this->link_value)) {
            $link_values = array();

            foreach ($this->link_value as $value) {
                $link_values[] = urlencode($value);
            }

            $link = vsprintf($this->link, $link_values);
        } else {
            $link_value = urlencode($this->link_value);
            $link = sprintf($this->link, $link_value);
        }

        return $link;
    }
917216
public function getModelName(): string
    {
        $className = get_class($this);

        $postfix = $this->getFactory()->getFactoryPostfix();
        $namespace = $this->getFactory()->getFactoryNamespace();

        if ($postfix != '') {
            $result = substr($className, strlen($namespace), strlen($postfix) * -1);
        } else {
            $result = substr($className, strlen($namespace));
        }

        return $result;
    }
920212
public function getRegisterLink()
    {
        $o = $this->owner;
        //$link = $o->getInternalLink() . "/register";
        //return $link;

        $detailStr = 'register/' . $o->ID;

        $calendarPage = CalendarPage::get()->First();
        return $calendarPage->Link() .  $detailStr;
    }
65218
public function getChainedNameAttribute(): string
    {
        $categories = $this->breadcrumbLinks;
        $names = [];

        foreach ($categories as $url => $categoryName) {
            $names[] = $categoryName;
        }

        return implode(' -> ', $names);
    }
265605
public function getLink() {
		if($this->get('many') && $this->type() == 'hasMany')
			return $this->reverse()->get('name').'_id';
		elseif(!$this->get('many'))
			return $this->name.'_id';
	}
1086026
protected function get_module_names() {
        if ($this->_modnames !== null) {
            return $this->_modnames;
        }
        $this->_modnames = [];
        foreach ($this->modules as $module) {
            $this->_modnames[$module->name] = $module->formattedname;
        }
        return $this->_modnames;
    }
521170
public function getLinkURL()
     {
         if (!$this->ID) {
             return;
         }
         $type = $this->Type;
         switch ($type) {
            case 'URL':
                $LinkURL = $this->URL;
                break;
            case 'Email':
                $LinkURL = $this->Email ? "mailto:$this->Email" : null;
                break;
            case 'Phone':
                $phone = $this->obj('Phone')->PhoneFriendly();
                $LinkURL = $phone ? "tel:$phone" : null;
                break;
            case 'File':
            case 'SiteTree':
                if ($type && $component = $this->getComponent($type)) {
                    if (!$component->exists()) {
                        $LinkURL = false;
                    }
                    if ($component->hasMethod('Link')) {
                        $LinkURL = $component->Link() . $this->Anchor;
                    } else {
                        $LinkURL = "Please implement a Link() method on your dataobject \"$type\"";
                    }
                }
                break;
            default:
                $LinkURL = false;
                break;
         }

         $this->extend('updateLinkURL', $LinkURL);
         return $LinkURL;
     }
1345998
public function getModulesPath()
    {
        $paths = array();
        foreach ($this->getLoadedModules(true) as $module) {
            $paths[$module->getName()] = $module->getPath();
        }

        return $paths;
    }
828807
public function get_instance_name() {
        if ($this->plugin === 'core') {
            $string = get_string('allevents', 'tool_monitor');
        } else {
            if ($this->cmid == 0) {
                $string = get_string('allmodules', 'tool_monitor');
            } else {
                $cms = get_fast_modinfo($this->courseid);
                $cms = $cms->get_cms();
                if (isset($cms[$this->cmid])) {
                    $string = $cms[$this->cmid]->get_formatted_name(); // Instance name.
                } else {
                    // Something is wrong, instance is not present anymore.
                    $string = get_string('invalidmodule', 'tool_monitor');
                }
            }
        }

        return $string;
    }
294416
protected function _getLinkId()
    {
        if ($connect = ldap_connect($this->_params['hostname'], $this->_params['port'])) {
            ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, $this->_params['protocolVersion']);
            ldap_set_option($connect, LDAP_OPT_REFERRALS, 0);
            return $connect;
        }
        return false;
    }