Exemplo n.º 1
0
 public function __construct($params = array())
 {
     parent::__construct($params);
     $this->EE->load->library('postmaster_task', array('base_path' => PATH_THIRD . 'postmaster/tasks/'));
     $method = 'create_task_action';
     if ($this->EE->input->get('id')) {
         $method = 'edit_task_action';
     }
     $this->action = $this->current_url('ACT', $this->EE->channel_data->get_action_id('Postmaster_mcp', $method));
     $this->button = 'Save Task';
 }
Exemplo n.º 2
0
 public function __construct($params = array())
 {
     parent::__construct($params);
     $this->parser_url = $this->parser_url . '&prefix=notice';
     $this->EE->load->driver('Interface_builder');
     $this->EE->load->library('postmaster_notification', array('base_path' => PATH_THIRD . 'postmaster/notifications/'));
     $method = 'create_notification_action';
     if ($this->EE->input->get('id')) {
         $method = 'edit_notification_action';
     }
     $this->action = $this->current_url('ACT', $this->EE->channel_data->get_action_id('Postmaster_mcp', $method));
     $this->button = 'Save Notification';
     $this->IB = $this->EE->interface_builder;
 }