Adds a standard parameter id to the collection.

@param                  $parameterId
@param IParameterHasher $hasher
@param mixed            $data

@return void
12211
public function addId($parameterId, IParameterHasher $hasher, $data = null)
    {
        $this->parameters[] = new StandardParameter($parameterId, $hasher, $data);
    }
1155711
public function load($identifier, ParameterBagInterface $parameterBag)
    {
        $stateFilename = $this->getStateFilename($identifier);
        if (!file_exists($stateFilename)) {
            throw new IOException("State file {$stateFilename} doesn't exist!");
        }

        $stateFileContent = file_get_contents($stateFilename);

        $parameterBag->add(unserialize($stateFileContent));
    }
426934
public void addId(final URI id, final String value) {
        if (id != null && value != null) {
            final URI localId = id.normalize();
            final String localValue = value.trim();
            idMap.put(localId, localValue);
        }
    }
1208093
public static function updateInternal($id, $record, $params = [])
    {
        if (empty($record)) {
            throw new BadRequestException('There are no fields in the record to create . ');
        }

        if (empty($id)) {
            //Todo:perform logging below
            //Log::error( 'Update request with no id supplied: ' . print_r( $record, true ) );
            throw new BadRequestException('Identifying field "id" can not be empty for update request . ');
        }

        $userId = SessionUtility::getCurrentUserId();
        $record['user_id'] = $userId;
        // Making sure name is not changed during update as it not be unique.
        $record['name'] = $id;
        $model = static::whereUserId($userId)->whereName($id)->first();

        if (!$model instanceof Model) {
            throw new NotFoundException("Record with identifier '$id' not found.");
        }

        $pk = $model->primaryKey;
        //	Remove the PK from the record since this is an update
        unset($record[$pk]);

        try {
            $model->update($record);

            return static::buildResult($model, $params);
        } catch (\Exception $ex) {
            throw new InternalServerErrorException('Failed to update resource: ' . $ex->getMessage());
        }
    }
964128
@Override
  public final void setItsId(final IdUserRoleTomcat pItsId) {
    this.itsId = pItsId;
    if (this.itsId == null) {
      this.itsUser = null;
      this.itsRole = null;
    } else {
      this.itsUser = this.itsId.getItsUser();
      this.itsRole = this.itsId.getItsRole();
    }
  }
15710
public static void addToParameters(final IRequestParameters parameters,
		final Map<String, List<StringValue>> parameterMap)
	{
		for (final String parameterName : parameters.getParameterNames())
		{
			final List<StringValue> parameterValues = parameters.getParameterValues(parameterName);
			parameterMap.put(parameterName, parameterValues);
		}
	}
1320742
public function persist($identifier, ParameterBagInterface $parameterBag)
    {
        $stateFilename = $this->getStateFilename($identifier);
        if (!touch($stateFilename) || (file_exists($stateFilename) && !is_writable($stateFilename))) {
            throw new IOException("State isn't writable!");
        }

        file_put_contents($stateFilename, serialize($parameterBag));
    }
303394
protected Object convertParameter(final Object iParameter) {
		if (iParameter != null)
			// FILTER PARAMETERS
			if (iParameter instanceof Map<?, ?>) {
				Map<String, Object> map = (Map<String, Object>) iParameter;

				for (Entry<String, Object> e : map.entrySet()) {
					map.put(e.getKey(), convertParameter(e.getValue()));
				}

			} else if (iParameter != null && !OType.isSimpleType(iParameter)) {
				final ORID rid = getIdentity(iParameter);
				if (rid != null && rid.isValid())
					// REPLACE OBJECT INSTANCE WITH ITS RECORD ID
					return rid;
			}

		return iParameter;
	}
1353600
def id_hash(id, organization)
      {
        id: id,
        provider: organization.oauth_provider,
        realm: organization.oauth_uid
      }
    end
1177618
public function load($id, array $parameters = [], array $headers = [])
    {
        $data = $this->getApi()->getCompany($id, $this->parseQueryParameters($parameters), $headers);

        return $this->getFactory()->create($data);
    }
368256
public void addIdHasContainer(HasContainer hasContainer) {
        Preconditions.checkState(BaseStrategy.SUPPORTED_ID_BI_PREDICATE.contains(hasContainer.getBiPredicate()), "Only " + BaseStrategy.SUPPORTED_ID_BI_PREDICATE.toString() + " is supported, found " + hasContainer.getBiPredicate().getClass().toString());
        Object rawId = hasContainer.getValue();
        if (rawId instanceof Collection) {
            @SuppressWarnings("unchecked")
            Collection<Object> ids = (Collection<Object>) rawId;
            Set<String> idLabels = new HashSet<>();
            for (Object id : ids) {
                if (id instanceof RecordId) {
                    RecordId recordId = (RecordId) id;
                    idLabels.add(recordId.getSchemaTable().toString());
                } else if (id instanceof Element) {
                    SqlgElement sqlgElement = (SqlgElement) id;
                    RecordId recordId = (RecordId) sqlgElement.id();
                    idLabels.add(recordId.getSchemaTable().toString());
                } else if (id instanceof String) {
                    RecordId recordId = RecordId.from(id);
                    idLabels.add(recordId.getSchemaTable().toString());
                } else {
                    throw new IllegalStateException("id must be an Element or a RecordId, found " + id.getClass().toString());
                }
            }
            if (hasContainer.getBiPredicate() == Contains.without) {
                //The id's label needs to be added to previous labelHasContainers labels.
                //without indicates that the label needs to be queried along with the rest, 'or' logic rather than 'and'.
                if (!this.labelHasContainers.isEmpty()) {
                    Object previousHasContainerLabels = this.labelHasContainers.get(this.labelHasContainers.size() - 1).getValue();
                    List<String> mergedLabels;
                    if (previousHasContainerLabels instanceof Collection) {
                        @SuppressWarnings("unchecked") Collection<String> labels = (Collection<String>) previousHasContainerLabels;
                        mergedLabels = new ArrayList<>(labels);
                    } else {
                        String label = (String) previousHasContainerLabels;
                        mergedLabels = new ArrayList<>();
                        mergedLabels.add(label);
                    }
                    mergedLabels.addAll(idLabels);
                    this.labelHasContainers.set(this.labelHasContainers.size() - 1, new HasContainer(T.label.getAccessor(), P.within(mergedLabels)));
                }
            } else {
                this.labelHasContainers.add(new HasContainer(T.label.getAccessor(), P.within(idLabels)));
            }
        } else {
            RecordId recordId;
            if (rawId instanceof RecordId) {
                recordId = (RecordId) rawId;
            } else if (rawId instanceof Element) {
                SqlgElement sqlgElement = (SqlgElement) rawId;
                recordId = (RecordId) sqlgElement.id();
            } else if (rawId instanceof String) {
                recordId = RecordId.from(rawId);
            } else {
                throw new IllegalStateException("id must be an Element or a RecordId, found " + id.getClass().toString());
            }
            if (hasContainer.getBiPredicate() == Compare.neq) {
                if (!this.labelHasContainers.isEmpty()) {
                    Object previousHasContainerLabels = this.labelHasContainers.get(this.labelHasContainers.size() - 1).getValue();
                    List<String> mergedLabels;
                    if (previousHasContainerLabels instanceof Collection) {
                        @SuppressWarnings("unchecked") Collection<String> labels = (Collection<String>) previousHasContainerLabels;
                        mergedLabels = new ArrayList<>(labels);
                    } else {
                        String label = (String) previousHasContainerLabels;
                        mergedLabels = new ArrayList<>();
                        mergedLabels.add(label);
                    }
                    mergedLabels.add(recordId.getSchemaTable().toString());
                    this.labelHasContainers.set(this.labelHasContainers.size() - 1, new HasContainer(T.label.getAccessor(), P.within(mergedLabels)));
                }
            } else {
                this.labelHasContainers.add(new HasContainer(T.label.getAccessor(), P.eq(recordId.getSchemaTable().toString())));
            }
        }
        this.idHasContainers.add(hasContainer);
    }
1223515
public static function changeOrAdd($id, array $params)
  {
    $change = R::load(self::classRefactor(get_called_class()), $id);
    foreach ($params as $param => $value) {
      $change->$param = $value;
    }
    $change->updated_at = time();
    R::store($change);
  }
944722
public void addObjectId( IdKey id, Object instance ) {
        if ( null == idToObject ) {
            idToObject = new HashMap<IdKey, Object>();
        }
        idToObject.put( id, instance );
    }
1128433
private void _addParameter(String parameterName, String parameterValue) {
        if (parameterName == null) {
            throw new NullPointerException("parameterName");
        }
        if (parameterValue == null) {
            throw new NullPointerException("parameterValue");
        }
        List<String> parameterValues = _getParameterValues(parameterName);
        parameterValues.add(parameterValue);
    }
1363078
public function add_param($name, $value, $id = null) {
        if (!$id) {
            $id = $name;
        }
        $this->params[] = [
            'name' => $name,
            'value' => $value,
            'id' => $id
        ];
    }
1189173
private function addPagingLinksIfNeeded(PaginatedDataInterface $data): void
    {
        if ($data->isCollection() === true &&
            (0 < $data->getOffset() || $data->hasMoreItems() === true) &&
            $this->getOriginalUri() !== null
        ) {
            $links       = [];
            $linkClosure = $this->createLinkClosure($data->getLimit());

            $prev = DocumentInterface::KEYWORD_PREV;
            $next = DocumentInterface::KEYWORD_NEXT;
            $data->getOffset() <= 0 ?: $links[$prev] = $linkClosure(max(0, $data->getOffset() - $data->getLimit()));
            $data->hasMoreItems() === false ?: $links[$next] = $linkClosure($data->getOffset() + $data->getLimit());

            $this->withLinks($links);
        }
    }
1078266
public void addObjectId( Object object, ObjectIdSerializer<?> id ) {
        if ( null == mapObjectId ) {
            if ( useEqualityForObjectId ) {
                mapObjectId = new HashMap<Object, ObjectIdSerializer<?>>();
            } else {
                mapObjectId = new IdentityHashMap<Object, ObjectIdSerializer<?>>();
            }
        }
        mapObjectId.put( object, id );
    }