Gets the order default  values of a person according to the person id passed as parameter

@param $personId
@return string
@throws \GuzzleHttp\Exception\GuzzleException
435523
public function orderDefaultValues($personId)
    {
        $orderDefaultValues = $this->execute(
            self::HTTP_GET,
            self::DOMUSERP_API_PEDIDOVENDA . '/pessoas/' . $personId . '/valoresPadraoPedido'
        );

        return $orderDefaultValues;
    }
847358
public function getValueOrDefault($key, $default = null) {
        if (!empty($this->values[$key])) {
            return $this->values[$key];
        }
        elseif (!empty($this->defaults[$key])) {
            return $this->defaults[$key];
        }
        else {
            return $default;
        }
    }
1362281
public function getSpouseById(\Fisharebest\Webtrees\Individual $person) {
		if ($this->gedcomrecord->getWife() && 
				$person->getXref() === $this->gedcomrecord->getWife()->getXref()) {
			return $this->gedcomrecord->getHusband();
		} else {
			return $this->gedcomrecord->getWife();
		}
	}
942810
public function get($entityId = null)
    {
        if (null !== $entityId) {
            $entityId = '/'.$entityId;
        }


        $response = $this->client->get(sprintf('/entities%s', $entityId));

        return $this->decodeResponse($response);
    }
392856
public static function retrievePerson($id, $personId, $params = null, $opts = null)
    {
        return self::_retrieveNestedResource($id, static::PATH_PERSONS, $personId, $params, $opts);
    }
1143208
public function getDefaultValues($id = null)
    {
        if ($id === null) {
            return array();
        }
        $entity = $this->getById($id);
        $values = $this->getDefaultFormValues($entity);
        return $values;
    }
1339974
public function normalizeUserId($userId)
    {
        if (is_numeric($userId)) {
            return $userId;
        }

        if (is_object($userId)) {
            return $userId->id;
        }

        if ($this->auth->check()) {
            return $this->auth->user()->id;
        }

        if (is_numeric($this->config->get('activitylog.defaultUserId'))) {
            return $this->config->get('activitylog.defaultUserId');
        };

        return '';
    }
557694
protected function getOrder($orderId)
    {
        if (null == $order = OrderQuery::create()->findPk($orderId)) {
            $this->getLog()->addError(
                $this->getTranslator()->trans("Unknown order ID:  %id", array('%id' => $orderId))
            );
        }

        return $order;
    }
219192
public function Get($UserID = FALSE) {
      if (!$UserID)
         $UserID = Gdn::Session()->UserID;

      if (($UserID != Gdn::Session()->UserID || !Gdn::Session()->UserID) && !Gdn::Session()->CheckPermission('Garden.Users.Edit')) {
         throw new Exception(T('You do not have permission to view other profiles.'), 401);
      }

      $UserModel = new UserModel();

      // Get the user.
      $User = $UserModel->GetID($UserID, DATASET_TYPE_ARRAY);
      if (!$User) {
         throw new Exception(T('User not found.'), 404);
      }

      $PhotoUrl = $User['Photo'];
      if ($PhotoUrl && strpos($PhotoUrl, '//') == FALSE) {
         $PhotoUrl = Url('/uploads/'.ChangeBasename($PhotoUrl, 'n%s'), TRUE);
      }
      $User['Photo'] = $PhotoUrl;

      // Remove unwanted fields.
      $this->Data = ArrayTranslate($User, array('UserID', 'Name', 'Email', 'Photo'));

      $this->Render();
   }
37425
protected function load($entityId)
    {
        $table = $this->getEntityDescriptor()->getTableName();
        $primaryKey = $this->getEntityDescriptor()
            ->getPrimaryKey()
            ->getField();

        return $this->find()
            ->where([
                "{$table}.{$primaryKey} = :id" => [':id' => $entityId]
            ])
            ->first();
    }
618003
public function getCurrentSequenceNumber($transactionId)
    {
        $transactionEntity = $this->queryContainer
            ->createCurrentSequenceNumberQuery($transactionId)
            ->findOne();

        // If we have a transactionId but no status log we return the configured default
        if (!$transactionEntity || !$transactionEntity->getSequenceNumber()) {
            return $this->defaultEmptySequenceNumber;
        }

        return $transactionEntity->getSequenceNumber();
    }
82674
public function findById($entityId)
    {
        $this->adapter->select($this->entityTable, "id = {$entityId}");

        if (($data = $this->adapter->fetch()) !== false) {
            return $this->createEntity($data);
        }

        return null;
    }
1002621
public function getCredentialObject($userId = null)
    {
        if ($userId == null && array_key_exists($this->defaultAccountName, $this->credentialHashmap)) {
            $credObj = $this->credentialHashmap[$this->defaultAccountName];
        } else if (array_key_exists($userId, $this->credentialHashmap)) {
            $credObj = $this->credentialHashmap[$userId];
        }

        if (empty($credObj)) {
            throw new BlockCypherInvalidCredentialException("Credential not found for " . ($userId ? $userId : " default user") .
                ". Please make sure your configuration/APIContext has credential information");
        }
        return $credObj;
    }
660823
public function getInheritSort($nodeId)
    {
        if (isset($this->attributes['inheritSort'][$nodeId])) {
            return $this->attributes['inheritSort'][$nodeId];
        }

        return $this->sort;
    }
1082199
public function getUser(string $userid)
    {
        $cl = $this->getUserClass();
        $user = new $cl;
        return $user->obtainByUserID($userid);
    }
987623
public function getDefaultOrder($alias = 't')
    {
        if (is_null($this->_defaultOrder)) {
            $this->_defaultOrder = $this->getDescriptorDefaultOrder('{alias}');
        }
        $sortBy = [];
        foreach ($this->_defaultOrder as $key => $value) {
            $sortBy[strtr($key, ['{alias}' => $alias])] = $value;
        }

        return $sortBy;
    }
818790
public function getIndex($itemId)
    {
        $item = Item::findOrFail($itemId);

        if (!$item->isStarted() && $item->seller->userId != Auth::user()->userId) {
            return mustard_redirect('/');
        }

        if (mustard_loaded('media')) {
            $photos = $item->photos()->orderBy('primary', 'desc')->get();

            if ($photos->isEmpty()) {
                $photos->push(new Photo());
            };
        }

        $bids = mustard_loaded('auctions')
            ? $item->getBidHistory()
            : new Collection();

        $highest_bid = mustard_loaded('auctions')
            ? ($bids->first() ?: new \Hamjoint\Mustard\Auctions\Bid())
            : new Collection();

        return view('mustard::item.summary', [
            'item'        => $item,
            'photos'      => $photos,
            'bids'        => $bids,
            'highest_bid' => $highest_bid,
        ]);
    }