public static function setUserTermsforEntity($fieldName, $entityName, $entityID, $multiValueTermArray) { UserFieldWrapper::getObject($entityName, $fieldName)->DeleteUsersForEntity($entityID); foreach ($multiValueTermArray as $term) { $term->Save(); } }
public function LoadRelationships() { foreach ($this->mt as $mtField) { MtFieldWrapper::getMTTermsforEntity($mtField, $this->entity, $this, $this->{$this->keyName}); } foreach ($this->uf as $userField) { UserFieldWrapper::getUserTermsforEntity($userField, $this->entity, $this, $this->{$this->keyName}); } $this->LoadDocs(); $this->LoadGeometries(); }