/**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('sSuffix', $this->getOption('suffix')));
     $collection->add(new Attribute('asPrefixes', $this->getOption('prefixes'), Attribute::TYPE_ARRAY));
     $collection->add(new Attribute('sVatField', $this->getOption('vat_field_name')));
 }
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setNormalizer('property_path', function () {
         return;
     });
 }
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('fOnChange', $this->getOption('on_change'), Attribute::TYPE_FUNCTION));
     $collection->add(new Attribute('fOnBeforeChange', $this->getOption('on_before_change'), Attribute::TYPE_FUNCTION));
     $collection->add(new Attribute('sLoadProductsRoute', $this->getOption('load_products_route'), Attribute::TYPE_STRING));
     $collection->add(new Attribute('oRepeat', $this->prepareRepetitions(), Attribute::TYPE_ARRAY));
 }
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('sSetId', $this->getOption('set')));
     $collection->add(new Attribute('aoAttributes', $this->getOption('attributes'), Attribute::TYPE_ARRAY));
     $collection->add(new Attribute('sDeleteAttributeRoute', $this->getOption('delete_attribute_route')));
     $collection->add(new Attribute('sRenameAttributeRoute', $this->getOption('rename_attribute_route')));
     $collection->add(new Attribute('sRenameAttributeValueRoute', $this->getOption('rename_attribute_value_route')));
 }
Exemple #5
0
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('sSuffix', $this->getOption('suffix')));
     $collection->add(new Attribute('iPricePrecision', $this->getOption('price_precision'), Attribute::TYPE_INTEGER));
     $collection->add(new Attribute('iRangePrecision', $this->getOption('range_precision'), Attribute::TYPE_INTEGER));
     $collection->add(new Attribute('sRangeSuffix', $this->getOption('range_suffix')));
     $collection->add(new Attribute('asPrefixes', $this->getOption('prefixes'), Attribute::TYPE_ARRAY));
     $collection->add(new Attribute('sVatField', $this->getOption('vat_field_name')));
 }
Exemple #6
0
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('sUploadUrl', $this->getOption('upload_url')));
     $collection->add(new Attribute('sSessionName', $this->getOption('session_name')));
     $collection->add(new Attribute('sSessionId', $this->getOption('session_id')));
     $collection->add(new Attribute('iLimit', $this->getOption('limit'), Attribute::TYPE_INTEGER));
     $collection->add(new Attribute('asFileTypes', $this->getOption('file_types'), Attribute::TYPE_ARRAY));
     $collection->add(new Attribute('sFileTypesDescription', $this->getOption('file_types_description')));
     $collection->add(new Attribute('sLoadRoute', $this->getOption('load_route')));
     $collection->add(new Attribute('oRepeat', $this->prepareRepetitions(), Attribute::TYPE_ARRAY));
 }
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('sGetGroupsRoute', $this->getOption('get_groups_route')));
     $collection->add(new Attribute('sGetAttributesRoute', $this->getOption('get_attributes_route')));
     $collection->add(new Attribute('sGetAttributesValuesRoute', $this->getOption('get_attributes_values_route')));
     $collection->add(new Attribute('sAddAttributeRoute', $this->getOption('add_attribute_route')));
     $collection->add(new Attribute('sAddAttributeValueRoute', $this->getOption('add_attribute_value_route')));
     $collection->add(new Attribute('sCategoryField', $this->getOption('category_field')));
     $collection->add(new Attribute('sPriceField', $this->getOption('price_field')));
     $collection->add(new Attribute('bAllowGenerate', $this->getOption('allow_generate'), Attribute::TYPE_BOOLEAN));
     $collection->add(new Attribute('sVatField', $this->getOption('vat_field')));
     $collection->add(new Attribute('aoVatValues', $this->getOption('vat_values'), Attribute::TYPE_ARRAY));
     $collection->add(new Attribute('aoPhotos', $this->getOption('photos'), Attribute::TYPE_ARRAY));
     $collection->add(new Attribute('aoAvailability', $this->getOption('availability'), Attribute::TYPE_ARRAY));
     $collection->add(new Attribute('aoSuffixes', $this->getOption('suffixes'), Attribute::TYPE_ARRAY));
     $collection->add(new Attribute('sSet', $this->getOption('set')));
 }
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('aoStatuses', $this->getOption('statuses'), Attribute::TYPE_ARRAY));
 }
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('sLoadClientsRoute', $this->getOption('load_clients_route'), Attribute::TYPE_STRING));
     $collection->add(new Attribute('sGetClientDetailsRoute', $this->getOption('get_client_details_route'), Attribute::TYPE_STRING));
 }
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('aoOptions', $this->prepareOptions(), Attribute::TYPE_ARRAY));
 }
 /**
  * {@inheritdoc}
  */
 public function prepareAttributesCollection(AttributeCollection $collection)
 {
     parent::prepareAttributesCollection($collection);
     $collection->add(new Attribute('asControllers', $this->getOption('controllers'), Attribute::TYPE_ARRAY));
     $collection->add(new Attribute('asActions', $this->getOption('actions'), Attribute::TYPE_ARRAY));
 }