public function __construct(IRestServer $server, CustomAttribute $attribute)
 {
     $this->id = $attribute->Id();
     $this->categoryId = $attribute->Category();
     $this->label = $attribute->Label();
     $this->possibleValues = $attribute->PossibleValueList();
     $this->regex = $attribute->Regex();
     $this->required = $attribute->Required();
     $this->AddService($server, WebServices::AllCustomAttributes, array(WebServiceParams::AttributeCategoryId => $this->categoryId));
     $this->AddService($server, WebServices::GetCustomAttribute, array(WebServiceParams::AttributeId => $this->id));
 }
 public function __construct(IRestServer $server, CustomAttribute $attribute)
 {
     $this->id = $attribute->Id();
     $this->categoryId = $attribute->Category();
     $this->label = $attribute->Label();
     $this->possibleValues = $attribute->PossibleValueList();
     $this->regex = $attribute->Regex();
     $this->required = $attribute->Required();
     $this->type = $attribute->Type();
     $this->sortOrder = $attribute->SortOrder();
     $this->appliesToId = $attribute->EntityId();
     $this->AddService($server, WebServices::AllCustomAttributes, array(WebServiceParams::AttributeCategoryId => $this->categoryId));
     $this->AddService($server, WebServices::GetCustomAttribute, array(WebServiceParams::AttributeId => $this->id));
     $this->AddService($server, WebServices::UpdateCustomAttribute, array(WebServiceParams::AttributeId => $this->id));
     $this->AddService($server, WebServices::DeleteCustomAttribute, array(WebServiceParams::AttributeId => $this->id));
 }
Пример #3
0
 /**
  * @return array|string[]
  */
 public function PossibleValueList()
 {
     return $this->attributeDefinition->PossibleValueList();
 }