Returns a single resource

@return string HTML output
760501
public function get()
	{
		$view = $this->getView();

		$view->customData = $this->toArray( $view->item );
		$view->customBody = '';

		foreach( $this->getSubClients() as $client ) {
			$view->customBody .= $client->get();
		}

		return $this->render( $view );
	}
892277
private function getCache()
    {
        // cache for single run
        // so that getLastModified and getContent in single request do not add additional cache roundtrips (i.e memcache)
        if (isset($this->parsed)) {
            return $this->parsed;
        }

        // check from cache first
        $cache = null;
        $cacheId = $this->getCacheId();
        if ($this->cache->isValid($cacheId, 0)) {
            if ($cache = $this->cache->fetch($cacheId)) {
                $cache = unserialize($cache);
            }
        }

        $input = $cache ? $cache : $this->filepath;

        if ($this->cacheIsStale($cache)) {
            $cache = $this->compile($this->filepath);
        }

        if (!is_array($input) || $cache['updated'] > $input['updated']) {
            $this->cache->store($cacheId, serialize($cache));
        }

        return $this->parsed = $cache;
    }
96273
public function get()
	{
		$view = $this->getView();

		$view->physicalData = $this->toArray( $view->item );
		$view->physicalBody = '';

		foreach( $this->getSubClients() as $client ) {
			$view->physicalBody .= $client->get();
		}

		return $this->render( $view );
	}
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;
    }
577761
public function get()
	{
		$view = $this->getView();

		$view->subscriptionData = $this->toArray( $view->item );
		$view->subscriptionBody = '';

		foreach( $this->getSubClients() as $client ) {
			$view->subscriptionBody .= $client->get();
		}

		return $this->render( $view );
	}
296821
private function getArgumentResource()
    {
        $name = $this->argument('resource');
        if (str_contains($name, '/')) {
            $name = str_replace('/', '.', $name);
        }

        if (str_contains($name, '\\')) {
            $name = str_replace('\\', '.', $name);
        }

        // lowecase and singular
        $name = strtolower(str_singular($name));

        return $name;
    }
118441
public function getRelativeUrl()
    {
        $url = $this->getResourceUrl($this->resource, $this->idParam);

        if ($this->subresources && count($this->subresources)) {
            foreach($this->subresources as $subresource) {
                if ($subresource['name']) {
                    $url .= $this->getResourceUrl($subresource['name'], $subresource['id']);
                }
            }
        }

        return $url;
    }
901963
public function getResult()
    {
        $this->sortable();
        $query = http_build_query($this->attributes);
        $query = urldecode($query);
        $result = call_user_func($this->hashType, $query);

        return $this->isUpper ? strtoupper($result) : $result;
    }
210437
public function getResource()
    {
        if (null === $this->handle) {
            $this->handle = fopen($this->path, 'r');
        }

        return $this->handle;
    }
1322048
public static function get()
    {
       $args = func_get_args();
       
       $that = self::get_this($args);
       $term = self::get_term($args);
       $id = self::get_id($args);
       $plural = self::get_is_plural($args);

       if ($plural) {
         $url = URIResource::Make($that->path, array($that->id, GenericResource::getPath($term)));
         $dp = new DataPacketCollection($that->client->get($url));
         $cl = GenericResource::getObjClass($term);
         $pobjcl = "Catapult\\" . $cl . "Collection";
         $pobj = new $pobjcl($dp);
               
         return $pobj;
       } else {
         $url = URIResource::Make($that->path, array($that->id, GenericResource::getPath($term)));
         $dp = new DataPacket($that->client->get($url));
         $cl = GenericResource::getObjClass($term);
         $pobjcl = "Catapult\\" . $cl;
         $pobj = new $pobjcl;

         return Constructor::Make($pobj, $dp->get());
       }


       return Constructor::Make($pobj, $dp->get());
    }
1187962
public static function get()
    {
        $instance = new static;

        $request = new Request($instance->functionCall, $instance->module);        

        $instance->fill($request->execute());

        return $instance;
    }
778962
protected function getRequest()
    {
        if (null === $this->request) {
            $this->request = $this->getParser()->getRequest();
        }

        return $this->request;
    }
98304
private function getResource()
    {
        $resource = $this->resourceListing->getResource($this->context->getPath(), $this->context->getVersion());

        if (!$resource instanceof Resource) {
            throw new StatusCode\InternalServerErrorException('Resource is not available');
        }

        return $resource;
    }
1115783
public function get()
	{
		$view = $this->getView();

		$view->hiddenData = $this->toArray( $view->item );
		$view->hiddenBody = '';

		foreach( $this->getSubClients() as $client ) {
			$view->hiddenBody .= $client->get();
		}

		return $this->render( $view );
	}
1104587
public function getCurrentResource()
    {
        if (!$this->currentResource) {
            $request = $this->container->make('request');
            $this->currentResource = $this->detector->resourceByRequest($request);
        }

        return $this->currentResource;
    }
91675
public function single()
    {
        $this->execute();
        
        $data = $this->stmt->fetchObject('\Core\Data\DataObject');
        
        if (! empty($data)) {
            $data = $this->executeCallbackAndSchemeHandler($data);
        }
        
        return $data;
    }
37452
public function provide()
    {
        $returnValue = (string) '';

        
        $modelUri = common_ext_NamespaceManager::singleton()->getLocalNamespace()->getUri();
		$dbWrapper = core_kernel_classes_DbWrapper::singleton();
		$uriExist = false;
		do{
			list($usec, $sec) = explode(" ", microtime());
        	$uri = $modelUri .'i'. (str_replace(".","",$sec."".$usec));
			$sqlResult = $dbWrapper->query("SELECT COUNT(subject) AS num FROM statements WHERE subject = '".$uri."'");
			
			if ($row = $sqlResult->fetch()){
				$found = (int)$row['num'];
				if($found > 0){
					$uriExist = true;
				}
				
				$sqlResult->closeCursor();
			}
		}while($uriExist);
		
		$returnValue = $uri;
        

        return (string) $returnValue;
    }