/**
  * @param FOLDER $folder Update subscribers to this folder.
  */
 public function __construct($folder)
 {
     parent::__construct($folder->app);
     $this->_folder = $folder;
     $field = new ARRAY_FIELD();
     $field->id = 'subscriber_ids';
     $field->caption = 'Subscribers';
     $this->add_field($field);
 }
 /**
  * @param FOLDER $folder Add subscribers to this folder.
  */
 public function __construct($folder)
 {
     parent::__construct($folder->app);
     $this->_folder = $folder;
     $field = new TEXT_FIELD();
     $field->id = 'emails';
     $field->caption = 'Subscribers';
     $field->description = 'Place each email on its own line in the list.';
     $field->required = true;
     $this->add_field($field);
 }
    /**
     * @access private
     */
    protected function _draw_scripts()
    {
        parent::_draw_scripts();
        ?>
  function on_click_thumbnail (ctrl)
  {
    ctrl.form.thumbnail_size.disabled = ! ctrl.checked;
  }
<?php 
    }
 /**
  * Initialize the form's fields with default values and visibilities.
  */
 public function load_with_defaults()
 {
     parent::load_with_defaults();
     $this->set_value('name', read_var('name'));
 }
 /**
  * Load form fields from this object.
  * @param object $obj
  */
 public function load_from_object($obj)
 {
     parent::load_from_object($obj);
     $this->set_value('name', $this->_user->title);
 }
 /**
  * Read in values from the {@link $method} array.
  * @access private
  */
 protected function _load_from_request()
 {
     parent::_load_from_request();
     if ($this->value_for('quick_search')) {
         $this->load_with_defaults();
         $this->load_from_request_for('search_text');
         if ($this->is_field('folder_ids')) {
             $this->load_from_request_for('folder_ids');
             $this->load_from_request_for('folder_search_type');
         }
         if ($this->is_field('state')) {
             $this->load_from_request_for('state');
             $this->load_from_request_for('not_state');
         }
     }
 }
 public function load_from_object($obj)
 {
     parent::load_from_object($obj);
     $this->set_value('copy_mode', Security_copy_current);
 }
 /**
  * Read in values from the {@link $method} array.
  * @access private
  */
 protected function _load_from_request()
 {
     parent::_load_from_request();
     $this->object_list->load_from_request();
     $this->set_value('entry_ids', $this->object_list->entry_ids());
     $this->set_value('folder_ids', $this->object_list->folder_ids());
 }