protected function _draw_options($renderer)
 {
     parent::_draw_options($renderer);
     $props = $renderer->make_list_properties();
     $props->show_descriptions = true;
     $props->add_item('Publish branch only', History_item_silent, 'Generate a single notification indicating that the branch was purged.');
     $props->add_item('Publish all', History_item_needs_send, 'Generate individual notifications for affected jobs and changes.');
     $renderer->draw_radio_group_row('sub_history_item_publication_state', $props);
 }
 /**
  * Load initial properties from this object.
  * @param ATTACHMENT $obj
  */
 public function load_from_object($obj)
 {
     parent::load_from_object($obj);
     $this->set_value('type', $obj->type);
 }
 /**
  * @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;
 }
 public function load_from_object($obj)
 {
     parent::load_from_object($obj);
     $this->set_value('sub_history_item_publication_state', History_item_silent);
 }
 /**
  * @param RELEASE $obj
  */
 public function load_from_object($obj)
 {
     parent::load_from_object($obj);
     $this->set_value('sub_history_item_publication_state', History_item_silent);
     $this->_previews = array();
     $this->add_preview($obj, 'Purge Release details', true);
 }
Esempio n. 6
0
    /**
     * @access private
     */
    protected function _draw_scripts()
    {
        parent::_draw_scripts();
        ?>
  function on_click_purge (ctrl)
  {
    enable_item (ctrl.form.remove_resources, 0, is_selected (ctrl, 1));
  }
<?php 
    }