Dotclear


Ignore:
Timestamp:
09/16/13 10:11:39 (12 years ago)
Author:
Dsls
Branch:
actionsreloaded
Message:

Added redirection default params, tuned pages plugin for new actions handling. See #1181

Location:
inc/admin/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/actions/class.dcaction.php

    r1807 r1903  
    5252     * @return mixed Value. 
    5353     */ 
    54      public function __construct($core,$uri) { 
     54     public function __construct($core,$uri,$redirect_args=array()) { 
    5555          $this->core = $core; 
    5656          $this->actions = new ArrayObject(); 
    5757          $this->combo = array(); 
    5858          $this->uri = $uri; 
    59           $this->redir_args = array(); 
     59          $this->redir_args = $redirect_args; 
    6060          $this->redirect_fields = array(); 
    6161          $this->action = ''; 
    6262          $this->cb_title = __('Title'); 
     63          $this->entries = array(); 
    6364          $this->from = new ArrayObject($_POST); 
    6465     } 
  • inc/admin/actions/class.dcactionposts.php

    r1808 r1903  
    1414class dcPostsActionsPage extends dcActionsPage 
    1515{ 
    16      public function __construct($core,$uri) { 
    17           parent::__construct($core,$uri); 
     16     public function __construct($core,$uri,$redirect_args=array()) { 
     17          parent::__construct($core,$uri,$redirect_args); 
    1818          $this->redirect_fields = array('user_id','cat_id','status', 
    1919          'selected','month','lang','sortby','order','page','nb'); 
     20          $this->loadDefaults(); 
     21          $core->callBehavior('adminPostsActionsPage',$core,$this); 
     22     } 
     23 
     24     protected function loadDefaults() { 
    2025          // We could have added a behavior here, but we want default action 
    2126          // to be setup first 
    22           dcDefaultPostActions::adminPostsActionsPage($core,$this); 
    23           $core->callBehavior('adminPostsActionsPage',$core,$this); 
    24  
    25      } 
    26  
     27          dcDefaultPostActions::adminPostsActionsPage($this->core,$this); 
     28     } 
     29      
    2730     public function beginPage($breadcrumb='',$head='') { 
    2831          dcPage::open( 
Note: See TracChangeset for help on using the changeset viewer.

Sites map