Returns data about a node, such as the class name
@param string $uuid
@return \stdClass the raw node data response
325821
public function getNodeData($uuid)
	{
		$request = new client\Request('/api/idnode/load', array(
			'uuid'=>$uuid,
			'meta'=>0));

		$response = $this->_client->getResponse($request);
		$content = json_decode($response->getContent());

		if (count($content->entries) > 0)
			return $content->entries[0];
		else
			return null;
	}
316934
protected function getDocuments($webspaceKey, $uuid = null, $nodes = null, $ignoredNodes = null)
    {
        $queryString = $this->getDocumentsQueryString($webspaceKey, $uuid, $nodes, $ignoredNodes);

        $query = $this->documentManager->createQuery($queryString, $this->exportLocale);

        return $query->execute();
    }
1193252
public function start($uuid)
    {
        if ($uuid instanceof Service) {
            $uuid = $uuid->getUuid();
        }

        $response = $this->httpClient->post(
            $this->getResourceUrl($uuid) . 'start/',
            []
        );

        return ServiceResponse::createFromHttpResponse($response);
    }
685092
public function report(string $uuid, string $token): ReportResponse
    {
        $response = $this->request(
            'GET',
            "{$this->groupCode}/report/$uuid",
            ['tokenid' => $token]
        );

        return $this->converter->getResponseObject(ReportResponse::class, $response);
    }
1011753
public function getStep($uuid)
    {
        foreach ($this->steps as $step) {
            if ($step->getUuid() === $uuid) {
                return $step;
            }
        }

        return null;
    }
659379
public function get($parentUuid, $uuid)
    {
        // Check parent exists
        $parentModel = static::$parentModel;
        $parentResource = $parentModel::findOrFail($parentUuid);

        // Authorize ability to view children model for parent
        $this->authorizeUserAction($this->parentAbilitiesRequired['view'], $parentResource);

        // Get resource
        $model = new static::$model;
        $resource = $model::with($model::$localWith)->where($model->getKeyName(), '=', $uuid)->firstOrFail();

        // Check resource belongs to parent
        if ($resource->getAttribute(($parentResource->getKeyName())) != $parentResource->getKey()) {
            throw new AccessDeniedHttpException('Resource \'' . class_basename(static::$model) . '\' with given UUID ' . $uuid . ' does not belong to ' .
                'resource \'' . class_basename(static::$parentModel) . '\' with given UUID ' . $parentUuid . '; ');
        }

        if (! $resource) {
            throw new NotFoundHttpException('Resource \'' . class_basename(static::$model) . '\' with given UUID ' . $uuid . ' not found');
        }

        // Authorize ability to create this model
        $this->authorizeUserAction('view', $resource);

        return $this->response->item($resource, $this->getTransformer());
    }
1183611
public function getOneByUuid($uuid)
	{
		$identifierPayload = $this->aggregate[IdentifierServiceProvider::getProviderKey()]->first(
			['filter' => ['uuid' => $uuid]]
		);

		if($identifierPayload->getStatus() != 'found')
		{
			return $identifierPayload;
		}

		return $this->aggregate[$this->formatEntityType($identifierPayload->getData()->getEntityType())]->first(
			['filter' => ['id' => $identifierPayload->getData()->getEntityKey()]]
		);
	}
887353
public function findOrFailByUuid($uuid, $columns = ['*'])
    {
        $result = $this->findByUuid($uuid, $columns);

        if (is_array($uuid)) {
            if (count($result) == count(array_unique($uuid))) {
                return $result;
            }
        } elseif (! is_null($result)) {
            return $result;
        }

        throw new NotFoundHttpException('Resource \'' . class_basename(get_class($this->model)) . '\' with given UUID ' . $uuid . ' not found');
    }
565169
public function th_getUidTopics($uid)
    {
        $arr = [];
        foreach ($this->subArr as $topic => $set) {
            if ($set->contains($uid)) {
                $arr[] = $topic;
            }
        }
        return $arr;
    }
1202777
public function getCounter($listUuid)
    {
        $sql = 'SELECT `uuid` FROM `'.self::LIST_ELEMENT_TABLE_NAME.'` WHERE `list` = :list';
        $stmt = $this->pdo->prepare($sql);
        $stmt->bindParam(':list', $listUuid);
        $stmt->execute();

        return $stmt->rowCount();
    }
712023
public function get(Uuid $uuid)
    {
        if (!isset($this->map[$uuid->toString()])) {
            throw new OutOfBoundsException(sprintf(
                'The binding with UUID "%s" does not exist.',
                $uuid->toString()
            ));
        }

        return $this->map[$uuid->toString()];
    }
936197
function getUuid() {
    return $this->time_low . '-' . $this->time_mid . '-' . $this->time_hi_version . '-' . $this->clock_seq_hi_variant . $this->clock_seq_low . '-' . $this->node;
  }
754405
protected function parse($uuid) {
    // The UUID as a standard string was passed in.
    if (is_string($uuid)) {
      if (substr($uuid, 0, 1) === '{' && substr($uuid, -1, 1) === '}') {
        $string = substr($uuid, 1, strlen($uuid) - 2);
        $this->parseStringToParts($string);
      }
      // The case where a URL was supplied.
      elseif (substr($uuid, 0, 9) === 'urn:uuid:') {
        $string = substr($uuid, 9);
        $this->parseStringToParts($string);
      }
      else {
        throw new Exception('The UUID string supplied could not be parsed.');
      }
    }
    elseif (is_array($uuid)) {

      if (count($uuid) != 6) {
        throw new Exception('The UUID array supplied could not be parsed.');
      }

      // For the case where a UUID is passed in via the format:
      // array('35e872b4', '190a', '5faa', 'a0', 'f6', '09da0d4f9c01');
      if (isset($uuid[0]) && !empty($uuid[0])) {
        $this->time_low = $uuid[0];
        $this->time_mid = $uuid[1];
        $this->time_hi_version =$uuid[2];
        $this->clock_seq_hi_variant = $uuid[3];
        $this->clock_seq_low =$uuid[4];
        $this->node = $uuid[5];
      }
      // For the case where the UUID is passed in via the format:
      // array(
      //  'time_low' => '35e872b4',
      //  'time_mid' => '190a',
      //  'time_hi_version' => '5faa',
      //  'clock_seq_hi_variant' => 'a0',
      //  'clock_seq_low' => 'f6',
      //  'node' => '09da0d4f9c01',
      // );
      elseif (isset($uuid['time_low']) && !empty($uuid['time_low'])) {
        $this->time_low = $uuid['time_low'];
        $this->time_mid = $uuid['time_mid'];
        $this->time_hi_version =$uuid['time_hi_version'];
        $this->clock_seq_hi_variant = $uuid['clock_seq_hi_variant'];
        $this->clock_seq_low =$uuid['clock_seq_low'];
        $this->node = $uuid['node'];
      }
      else {
        throw new Exception('The UUID array supplied could not be parsed.');
      }
    }
    else {
      throw new Exception('The UUID supplied could not be parsed.');
    }
  }
655003
protected function generateUUID()
        {
        $uuid = null;
        if ($this->useUUIDs) {
            $sql    = 'SELECT UUID() as id';
            $result = $this->database->fetchAssoc($sql);
            $uuid   = $result['id'];
        }
        return $uuid;
    }
1271041
public function getPidFromUid($uid = 0)
    {
        $queryBuilder = self::getQueryBuilder();
        $triggerElement = $queryBuilder
            ->select('pid')
            ->from('tt_content')
            ->where(
                $queryBuilder->expr()->eq(
                    'uid',
                    $queryBuilder->createNamedParameter(abs($uid), \PDO::PARAM_INT)
                )
            )
            ->execute()
            ->fetch();
        $pid = (int)$triggerElement['pid'];
        return is_array($triggerElement) && $pid ? $pid : 0;
    }
922056
public static function retrieve($uuid, ClientInterface $client = null)
    {
        return (new RequestService($client))
            ->setResourceClass(static::class)
            ->get($uuid);
    }
739568
public function getColor($uuid)
    {
        foreach ($this->colors as $color) {
            if ($color->getUuid() === $uuid) {
                return $color;
            }
        }
    }