Get the social share url
@return string
559792
public function getSocialShareUrl()
    {
        //Get the post id
        if(!$postId = get_the_ID()) {
            global $post; 
            $postId = $post->ID; 
        }

        //Return share url
        return urlencode(get_home_url(null, '?socialShareId=' . $postId, null)); 
    }
940683
public function get_url() {
        global $CFG;

        // We keep compatibility with 2.7 and 2.8 other['coursesectionid'].
        $sectionnumber = null;
        if (isset($this->other['coursesectionnumber'])) {
            $sectionnumber = $this->other['coursesectionnumber'];
        } else if (isset($this->other['coursesectionid'])) {
            $sectionnumber = $this->other['coursesectionid'];
        }
        require_once($CFG->dirroot . '/course/lib.php');
        try {
            return course_get_url($this->courseid, $sectionnumber);
        } catch (\Exception $e) {
            return null;
        }
    }
615240
protected function getClientUrl() {
        $protocol = isset($_SERVER['HTTP_X_FORWARDED_PROTO'])
            ? $_SERVER['HTTP_X_FORWARDED_PROTO']
            : isset($_SERVER['REQUEST_SCHEME'])
              ? $_SERVER['REQUEST_SCHEME']
              : (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
                ? 'https'
                : 'http';
            
        $host = $_SERVER['HTTP_HOST'];

        $request_uri = $_SERVER['REQUEST_URI'];
        
        return $protocol
            . '://'
            . $host
            . $request_uri;
    }
199388
public function getVideoCommentFeedUrl()
    {
        $commentsExtension = $this->getComments();
        $commentsFeedUrl = null;
        if ($commentsExtension) {
            $commentsFeedLink = $commentsExtension->getFeedLink();
            if ($commentsFeedLink) {
                $commentsFeedUrl = $commentsFeedLink->getHref();
            }
        }
        return $commentsFeedUrl;
    }
927292
public function getUrlAttribute()
    {
        if ($this->isLocalFile()) {
            return url(str_replace('public/', 'storage/', $this->location));
        } elseif ($this->fileExists()) {
            return $this->getS3Image();
        }

        return $this->lostImage();
    }
328369
public function getSocialProviders()
		{
			$xml = $this->call('getsocialproviders');

			$social_providers = array();

			foreach ($xml->Data as $social_provider_item) {
				$social_provider = new SocialProvider;
				$social_provider
					->setProviderId((int)$social_provider_item->social_provider_id)
					->setProviderName((string)$social_provider_item->provider)
					->setUsername((string)$social_provider_item->username);
				$social_providers[] = $social_provider;
			}

			return $social_providers;
		}
468462
public function url()
    {
        /** @var \Yajra\CMS\Repositories\Extension\Repository $repository */
        $repository = app('extensions');
        /** @var \Yajra\CMS\Entities\Extension $extension */
        $extension = $repository->findOrFail($this->entity->extension_id);
        $class     = $extension->param('class');
        if (class_exists($class)) {
            $entity = app($class)->findOrNew($this->entity->param('id'));
            if ($entity instanceof UrlGenerator) {
                if (! $entity->exists) {
                    return '#';
                }

                return $entity->getUrl($this->entity->param('data'));
            }
        }

        return url($this->entity->url);
    }
66009
public function getUrl()
    {
        $data = $this->getRawData();
        /**
         * If data is already an url don't save new file
         */
        if ($data && !filter_var($data, FILTER_VALIDATE_URL) !== false)
        {
            if(!is_string($data))
            {
                $data = \GuzzleHttp\json_encode($data);
            }
            $identifier = Auth::guest() ? time() : Auth::id();
            $file = $this->dataFolder.DIRECTORY_SEPARATOR.md5($identifier).'.json';
            Storage::disk('public')->put($file, $data);

            $data =  asset($this->publicStorageFolder.DIRECTORY_SEPARATOR.$file);
        }

        return $data;
    }
655684
public function get_url() {
        if ($this->other['forumtype'] == 'single') {
            // Single discussion forums are an exception. We show
            // the forum itself since it only has one discussion
            // thread.
            $url = new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
        } else {
            $url = new \moodle_url('/mod/forum/discuss.php', array('d' => $this->other['discussionid']));
        }
        $url->set_anchor('p'.$this->objectid);
        return $url;
    }
1209822
public function getThumbUrl() {

		if( $this->changed ) {

			return Yii::$app->fileManager->uploadUrl . '/' . CoreProperties::DIR_TEMP . $this->directory . "/" . $this->name . "-thumb." . $this->extension;
		}
		else if( $this->id > 0 ) {

			return Yii::$app->fileManager->uploadUrl . '/' . $this->thumb;
		}

		return "";
	}
151545
public function getUrl()
    {
        $path = $this->getPublicPath();

        $url = $this->getDiskConfig('url');

        if ($url) {
            if ($this->isInWebroot()) {
                $path = $this->media->getDiskPath();
            }

            return rtrim($url, '/').'/'.trim($path, '/');
        }

        return $this->url->asset($path);
    }
952251
public function get_url() {
        return \core_competency\url::user_competency_in_course($this->relateduserid, $this->other['competencyid'],
            $this->courseid);
    }
801492
public function getUrl($path)
    {
        $url = '';
        $share = $this->dropbox->createShareableLink($this->pathRoot.$path);
        if ($share)
            $url = str_replace('www.dropbox.com' ,  'dl.dropboxusercontent.com', $share);
        
        return $url;
    }
719089
public function getSocialPage(){
		$result = null;
		if (isset($this->userInfo[$this->socialFieldsMap['socialPage']])) {
			$result = $this->userInfo[$this->socialFieldsMap['socialPage']];
			}
		return $result;
		}
1072233
public function getShare($id,$social)
    {
        $url = '';
        $post = \App\Blog::find($id);
        if($post == NULL){
            App::abort(404);
        }

        // add social point if it is not robot
        if (!isset($_SERVER['HTTP_USER_AGENT']) && !preg_match('/bot|crawl|slurp|spider/i', $_SERVER['HTTP_USER_AGENT'])) {
            $post->socialPoint ++;
            $post->save();
        }
        switch ($social){
            case 'twitter' :
                $url  = 'https://twitter.com/home?status=';
                $url .= $post['title'] . ' ' . $post->getUrl();
            break;
            case 'facebook' :
                $url  = 'https://www.facebook.com/sharer/sharer.php?u=';
                $url .=  $post->getUrl();
            break;
            case 'googlePlus' :
                $url  = 'https://plus.google.com/share?url=';
                $url .= $post->getUrl();
            break;
            case 'linkedIn' :
                $url  = 'https://www.linkedin.com/shareArticle?mini=true&';
                $url .= 'url='.$post->getUrl().'&title='.$post['title'].'&summary=&source=';
            break;          
        }
        return \Redirect::to($url);
    }
316871
public function getFeedUrl()
    {
        if ($this->_feedUrl === null) {
            $httpPath = $this->_backendConfig->isSetFlag(self::XML_USE_HTTPS_PATH) ? 'https://' : 'http://';
            $this->_feedUrl = $httpPath . self::ELASTICSUITE_FEED_URL;
        }

        return $this->_feedUrl;
    }
314569
public function get_url() {
        if ($this->anonymous) {
            return new \moodle_url('/mod/feedback/show_entries.php', array('id' => $this->other['cmid'],
                    'showcompleted' => $this->objectid));
        } else {
            return new \moodle_url('/mod/feedback/show_entries.php' , array('id' => $this->other['cmid'],
                    'userid' => $this->userid, 'showcompleted' => $this->objectid));
        }
    }