Retrieve the details of the resource.

@return \CyberSpectrum\Transifex\TranslationResource
160223
public function fetchDetails()
    {
        $response = $this->executeJson(
            sprintf(
                'project/%s/resource/%s',
                $this->ensureParameter('project'),
                $this->ensureParameter('slug')
            ),
            array('details' => '')
        );

        $this->setFromResult($response);

        return $this;
    }
729576
protected function getResourceLog()
    {
        if (($log = \Arbit\VCSWrapper\Cache\Manager::get($this->path, $this->currentVersion, 'log')) === false) {
            // Refetch the basic logrmation, and cache it.
            $process = new \Arbit\VCSWrapper\SvnCli\Process('svn', $this->username, $this->password);
            $process->argument('--xml');

            // Fecth for specified version, if set
            if ($this->currentVersion !== null) {
                $process->argument('-r1:' . $this->currentVersion);
            }

            // Execute logr command
            $return = $process->argument('log')->argument(new \SystemProcess\Argument\PathArgument($this->root . $this->path))->execute();

            // Transform XML into object array
            $xmlLog = \Arbit\Xml\Document::loadString($process->stdoutOutput);
            $log    = array();
            foreach ($xmlLog->logentry as $entry) {
                $log[(string) $entry['revision']] = new \Arbit\VCSWrapper\LogEntry(
                    $entry['revision'],
                    $entry->author,
                    $entry->msg,
                    strtotime($entry->date)
                );
            }
            uksort($log, array($this, 'compareVersions'));
            $last = end($log);

            // Cache extracted data
            \Arbit\VCSWrapper\Cache\Manager::cache($this->path, $this->currentVersion = (string) $last->version, 'log', $log);
        }

        return $log;
    }
1355076
public function get_resources() {

        if (empty($this->resources)) {
            $this->resources = array();
            $this->resources[] = new \ltiservice_toolproxy\local\resources\toolproxy($this);
        }

        return $this->resources;

    }
305850
protected function getTranslateHelper()
    {
        if ( $this->translateHelper )
        {
            return $this->translateHelper;
        }

        if ( method_exists( $this->view, 'plugin' ) )
        {
            $this->translateHelper = $this->view
                                          ->plugin( 'translate' );
        }

        if ( ! $this->translateHelper instanceof Translate )
        {
            $this->translateHelper = new Translate();
        }

        return $this->translateHelper;
    }
654510
private function getTranslation()
    {
        $operatorTranslation = null;
        foreach ($this->entity->getTranslations() as $translation) {
            if ($translation->getLocale() == $this->locale) {
                $operatorTranslation = $translation;
            }
        }
        if (!$operatorTranslation) {
            $operatorTranslation = new OperatorTranslation();
            $operatorTranslation->setLocale($this->locale);
            $operatorTranslation->setOperator($this->entity);
            $this->entity->addTranslation($operatorTranslation);
        }

        return $operatorTranslation;
    }
1222153
public function get()
    {
        foreach ($this->resourcesMap as $key => $value) {
            $this->resources[$key] = $value['extractor']->extract($this->dom, $this->url);
        }

        return $this->resources;
    }
1340821
protected function getResourceLog()
    {
        if (($log = \Arbit\VCSWrapper\Cache\Manager::get($this->path, $this->currentVersion, 'log')) === false) {
            $svnLog = svn_log($this->root . $this->path);

            $log = array();
            foreach ($svnLog as $nr => $entry) {
                $log[$entry['rev']] = new \Arbit\VCSWrapper\LogEntry(
                    $entry['rev'],
                    $entry['author'],
                    $entry['msg'],
                    strtotime($entry['date'])
                );
            }
            uksort($log, array($this, 'compareVersions'));
            $last = end($log);

            \Arbit\VCSWrapper\Cache\Manager::cache($this->path, $this->currentVersion = (string) $last->version, 'log', $log);
        }

        return $log;
    }
52726
public function getSource()
    {
        $ret = ' * ';

        $ret .= '@' . $this->type;

        if (strlen($this->datatype) > 0) {
            $ret .= ' ' . $this->datatype;
        }

        if (strlen($this->variableName) > 0) {
            $ret .= ' $' . $this->variableName;
        }

        if (strlen($this->description) > 0) {
            $ret .= ' ' . $this->description;
        }

        $ret .= PHP_EOL;

        return $ret;
    }
781764
public function getTranslationsAttribute()
    {
        $translationData = [];
        $translations = Translation::where('entity_id', $this->id)->where('entity_type', get_class($this))->get();

        foreach ($translations as $translation) {
            $translationData[] = $translation->data->attributes;
        }

        return $translationData;
    }
658011
protected function _getResourceName()
	{
		if( $this->_resourceName === null ) {
			$this->_resourceName = $this->_context->getConfig()->get( 'resource/default', 'db' );
		}

		return $this->_resourceName;
	}
765818
public function getResources()
    {
        $keys = $this->capabilities->keys();
        $definitions = [];

        foreach ($keys as $key) {
            $definitions[$key] = $this->capabilities->get($key);
        }

        return $definitions;
    }
1056881
public function getContentLanguageService()
    {
        if ($this->languageService !== null) {
            return $this->languageService;
        }

        $this->languageService = new LanguageService(
            $this,
            $this->persistenceHandler->contentLanguageHandler(),
            $this->serviceSettings['language']
        );

        return $this->languageService;
    }
75506
public function getResource()
    {
        if (is_null($this->resource)) {
            $this->resource = $this->panel->getParent()->getResourcePath();
        }

        return $this->resource;
    }
1338559
protected function getResource()
    {
        $resource = str_replace(url()->to(''), '', app('request')->server->get('HTTP_REFERER'));
        return str_slug($resource);
    }
783243
private function getSource(): string
    {
        $transformedSource = '';
        foreach ($this->tokenStream as $token) {
            $transformedSource .= $token[1] ?? $token;
        }

        return $transformedSource;
    }
373996
public function getResource($slug)
    {
        $resource = new TranslationResource($this->getTransport());

        $resource->setProject($this->getSlug());
        $resource->setSlug($slug);

        $resource->fetchDetails();

        return $resource;
    }
278530
public function getResource()
    {
        if ($this->getEvent() && $this->event->getTarget() instanceof ResourceInterface) {
            return $this->event->getTarget();
        }

        return null;
    }