/**
  * @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);
 }
 /**
  * @param FOLDER $folder Objects are from this folder.
  */
 public function __construct($folder)
 {
     parent::__construct($folder);
     $field = new INTEGER_FIELD();
     $field->id = 'selected_folder_id';
     $field->caption = 'Target';
     $field->required = true;
     $field->min_value = 1;
     $this->add_field($field);
     $field = new BOOLEAN_FIELD();
     $field->id = 'maintain_permissions';
     $field->caption = 'Maintain permissions';
     $field->description = 'If checked, permissions are created where needed to ensure that folders retain their current permissions.';
     $this->add_field($field);
     $field = new BOOLEAN_FIELD();
     $field->id = 'copy_as_draft';
     $field->caption = 'Copy as Draft';
     $field->visible = false;
     $field->description = 'If checked, copied entries are stored as drafts instead of published.';
     $this->add_field($field);
 }