/**
  * @param APPLICATION $context
  */
 public function __construct($context)
 {
     parent::__construct($context);
     $field = new BOOLEAN_FIELD();
     $field->id = 'remove_resources';
     $field->caption = 'Remove associated files';
     $field->description = 'Leave this unchecked if any other object references the same files (e.g. you are purging a duplicate).';
     $field->visible = false;
     $this->add_field($field);
 }
 /**
  * @param FOLDER $folder Objects are from this folder.
  */
 public function __construct($folder)
 {
     parent::__construct($folder);
     $field = new INTEGER_FIELD();
     $field->id = 'show_comments';
     $field->caption = 'Comments';
     $field->min_value = 0;
     $field->max_value = 2;
     $this->add_field($field);
     $field = new BOOLEAN_FIELD();
     $field->id = 'show_users';
     $field->caption = 'Users/dates';
     $field->description = 'Display users and create/modify times.';
     $this->add_field($field);
 }
 /**
  * Draw the controls for the form.
  * @param FORM_RENDERER $renderer
  * @access private
  */
 protected function _draw_controls($renderer)
 {
     parent::_draw_controls($renderer);
 }