/** * @param APPLICATION $context */ public function __construct($context) { parent::__construct($context); $field = new ENUMERATED_FIELD(); $field->id = 'sub_history_item_publication_state'; $field->caption = 'Notifications'; $field->add_value(History_item_needs_send); $field->add_value(History_item_silent); $this->add_field($field); }
/** * @param FOLDER $context Deleting content from this folder. * @param string $set_name */ public function __construct($context) { parent::__construct($context); $field = new TEXT_FIELD(); $field->id = 'type'; $field->caption = 'Type'; $field->visible = false; $this->add_field($field); $field = $this->field_at('remove_resources'); $field->visible = true; }
/** * @param APPLICATION $context */ public function __construct($context) { parent::__construct($context); $field = new ENUMERATED_FIELD(); $field->id = 'sub_history_item_publication_state'; $field->caption = 'Notifications'; $field->add_value(History_item_needs_send); $field->add_value(History_item_silent); $this->add_field($field); $field = new INTEGER_FIELD(); $field->id = 'replacement_component_id'; $field->caption = 'Replace with'; $field->description = 'Replace all references with this component.'; $this->add_field($field); }
/** * @param FOLDER $context Deleting content from this folder. * @param string $set_name */ public function __construct($context) { parent::__construct($context); $field = $this->field_at('remove_resources'); $field->visible = true; }
/** * @param APPLICATION $context Main application. * @param string $set_name */ public function __construct($context, $set_name) { parent::__construct($context); $this->_privilege_set = $set_name; $field = new BOOLEAN_FIELD(); $field->id = 'purge'; $field->caption = 'Purge immediately'; $this->add_field($field); }