public static function setUserTermsforEntity($fieldName, $entityName, $entityID, $multiValueTermArray)
 {
     UserFieldWrapper::getObject($entityName, $fieldName)->DeleteUsersForEntity($entityID);
     foreach ($multiValueTermArray as $term) {
         $term->Save();
     }
 }
Example #2
0
 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();
 }