Changeset 597

Show
Ignore:
Timestamp:
09/28/07 17:53:27 (1 year ago)
Author:
laurentj
Message:

Little improvements in the hooks methods of jControllerDaoCrud

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0beta3.x/lib/jelix/controllers/jControllerDaoCrud.class.php

    r596 r597  
    207207        $tpl->assign('submitAction', $this->_getAction('savecreate')); 
    208208        $tpl->assign('listAction' , $this->_getAction('index')); 
    209         $this->_create($rep, $tpl); 
     209        $this->_create($form, $rep, $tpl); 
    210210        $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 
    211211        return $rep; 
     
    216216     * overload this method if you wan to do additionnal things on the response and on the edit template 
    217217     * during the create action. 
     218     * @param jFormsBase $form the form 
    218219     * @param jHtmlResponse $resp the response 
    219220     * @param jtpl $tpl the template to display the edit form  
    220221     */ 
    221     protected function _create($resp, $tpl) { 
     222    protected function _create($form, $resp, $tpl) { 
    222223 
    223224    } 
     
    306307        $tpl->assign('listAction' , $this->_getAction('index')); 
    307308        $tpl->assign('viewAction' , $this->_getAction('view')); 
    308         $this->_editUpdate($rep, $tpl); 
     309        $this->_editUpdate($form, $rep, $tpl); 
    309310        $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 
    310311        return $rep; 
     
    314315     * overload this method if you wan to do additionnal things on the response and on the edit template 
    315316     * during the editupdate action. 
     317     * @param jFormsBase $form the form 
    316318     * @param jHtmlResponse $resp the response 
    317319     * @param jtpl $tpl the template to display the edit form  
    318320     */ 
    319     protected function _editUpdate($resp, $tpl) { 
     321    protected function _editUpdate($form, $resp, $tpl) { 
    320322 
    321323    } 
     
    379381        $tpl->assign('deleteAction' , $this->_getAction('delete')); 
    380382        $tpl->assign('listAction' , $this->_getAction('index')); 
    381         $this->_view($rep,$tpl); 
     383        $this->_view($form, $rep, $tpl); 
    382384        $rep->body->assign($this->templateAssign, $tpl->fetch($this->viewTemplate)); 
    383385        return $rep; 
     
    387389     * overload this method if you want to do additionnal things on the response and on the view template 
    388390     * during the view action. 
     391     * @param jFormsBase $form the form 
    389392     * @param jHtmlResponse $resp the response 
    390393     * @param jtpl $tpl the template to display the form content 
    391394     */ 
    392     protected function _view($resp, $tpl) { 
     395    protected function _view($form, $resp, $tpl) { 
    393396 
    394397    } 
  • branches/1.0beta3.x/lib/jelix/controllers/jControllerDaoCrud.class.php

    r596 r597  
    207207        $tpl->assign('submitAction', $this->_getAction('savecreate')); 
    208208        $tpl->assign('listAction' , $this->_getAction('index')); 
    209         $this->_create($rep, $tpl); 
     209        $this->_create($form, $rep, $tpl); 
    210210        $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 
    211211        return $rep; 
     
    216216     * overload this method if you wan to do additionnal things on the response and on the edit template 
    217217     * during the create action. 
     218     * @param jFormsBase $form the form 
    218219     * @param jHtmlResponse $resp the response 
    219220     * @param jtpl $tpl the template to display the edit form  
    220221     */ 
    221     protected function _create($resp, $tpl) { 
     222    protected function _create($form, $resp, $tpl) { 
    222223 
    223224    } 
     
    306307        $tpl->assign('listAction' , $this->_getAction('index')); 
    307308        $tpl->assign('viewAction' , $this->_getAction('view')); 
    308         $this->_editUpdate($rep, $tpl); 
     309        $this->_editUpdate($form, $rep, $tpl); 
    309310        $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 
    310311        return $rep; 
     
    314315     * overload this method if you wan to do additionnal things on the response and on the edit template 
    315316     * during the editupdate action. 
     317     * @param jFormsBase $form the form 
    316318     * @param jHtmlResponse $resp the response 
    317319     * @param jtpl $tpl the template to display the edit form  
    318320     */ 
    319     protected function _editUpdate($resp, $tpl) { 
     321    protected function _editUpdate($form, $resp, $tpl) { 
    320322 
    321323    } 
     
    379381        $tpl->assign('deleteAction' , $this->_getAction('delete')); 
    380382        $tpl->assign('listAction' , $this->_getAction('index')); 
    381         $this->_view($rep,$tpl); 
     383        $this->_view($form, $rep, $tpl); 
    382384        $rep->body->assign($this->templateAssign, $tpl->fetch($this->viewTemplate)); 
    383385        return $rep; 
     
    387389     * overload this method if you want to do additionnal things on the response and on the view template 
    388390     * during the view action. 
     391     * @param jFormsBase $form the form 
    389392     * @param jHtmlResponse $resp the response 
    390393     * @param jtpl $tpl the template to display the form content 
    391394     */ 
    392     protected function _view($resp, $tpl) { 
     395    protected function _view($form, $resp, $tpl) { 
    393396 
    394397    } 
  • branches/1.0beta3.x/lib/jelix/core-modules/jelix/templates/crud_list.tpl

    r596 r597  
    11<h1>{@jelix~crud.title.list@}</h1> 
    22 
    3 <table class="crud-record-list" border="1"
     3<table class="crud-record-list"
    44<thead> 
    55<tr> 
  • branches/1.0beta3.x/lib/jelix/core-modules/jelix/templates/crud_list.tpl

    r596 r597  
    11<h1>{@jelix~crud.title.list@}</h1> 
    22 
    3 <table class="crud-record-list" border="1"
     3<table class="crud-record-list"
    44<thead> 
    55<tr> 
  • trunk/lib/jelix/controllers/jControllerDaoCrud.class.php

    r596 r597  
    207207        $tpl->assign('submitAction', $this->_getAction('savecreate')); 
    208208        $tpl->assign('listAction' , $this->_getAction('index')); 
    209         $this->_create($rep, $tpl); 
     209        $this->_create($form, $rep, $tpl); 
    210210        $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 
    211211        return $rep; 
     
    216216     * overload this method if you wan to do additionnal things on the response and on the edit template 
    217217     * during the create action. 
     218     * @param jFormsBase $form the form 
    218219     * @param jHtmlResponse $resp the response 
    219220     * @param jtpl $tpl the template to display the edit form  
    220221     */ 
    221     protected function _create($resp, $tpl) { 
     222    protected function _create($form, $resp, $tpl) { 
    222223 
    223224    } 
     
    306307        $tpl->assign('listAction' , $this->_getAction('index')); 
    307308        $tpl->assign('viewAction' , $this->_getAction('view')); 
    308         $this->_editUpdate($rep, $tpl); 
     309        $this->_editUpdate($form, $rep, $tpl); 
    309310        $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 
    310311        return $rep; 
     
    314315     * overload this method if you wan to do additionnal things on the response and on the edit template 
    315316     * during the editupdate action. 
     317     * @param jFormsBase $form the form 
    316318     * @param jHtmlResponse $resp the response 
    317319     * @param jtpl $tpl the template to display the edit form  
    318320     */ 
    319     protected function _editUpdate($resp, $tpl) { 
     321    protected function _editUpdate($form, $resp, $tpl) { 
    320322 
    321323    } 
     
    379381        $tpl->assign('deleteAction' , $this->_getAction('delete')); 
    380382        $tpl->assign('listAction' , $this->_getAction('index')); 
    381         $this->_view($rep,$tpl); 
     383        $this->_view($form, $rep, $tpl); 
    382384        $rep->body->assign($this->templateAssign, $tpl->fetch($this->viewTemplate)); 
    383385        return $rep; 
     
    387389     * overload this method if you want to do additionnal things on the response and on the view template 
    388390     * during the view action. 
     391     * @param jFormsBase $form the form 
    389392     * @param jHtmlResponse $resp the response 
    390393     * @param jtpl $tpl the template to display the form content 
    391394     */ 
    392     protected function _view($resp, $tpl) { 
     395    protected function _view($form, $resp, $tpl) { 
    393396 
    394397    } 
  • trunk/lib/jelix/controllers/jControllerDaoCrud.class.php

    r596 r597  
    207207        $tpl->assign('submitAction', $this->_getAction('savecreate')); 
    208208        $tpl->assign('listAction' , $this->_getAction('index')); 
    209         $this->_create($rep, $tpl); 
     209        $this->_create($form, $rep, $tpl); 
    210210        $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 
    211211        return $rep; 
     
    216216     * overload this method if you wan to do additionnal things on the response and on the edit template 
    217217     * during the create action. 
     218     * @param jFormsBase $form the form 
    218219     * @param jHtmlResponse $resp the response 
    219220     * @param jtpl $tpl the template to display the edit form  
    220221     */ 
    221     protected function _create($resp, $tpl) { 
     222    protected function _create($form, $resp, $tpl) { 
    222223 
    223224    } 
     
    306307        $tpl->assign('listAction' , $this->_getAction('index')); 
    307308        $tpl->assign('viewAction' , $this->_getAction('view')); 
    308         $this->_editUpdate($rep, $tpl); 
     309        $this->_editUpdate($form, $rep, $tpl); 
    309310        $rep->body->assign($this->templateAssign, $tpl->fetch($this->editTemplate)); 
    310311        return $rep; 
     
    314315     * overload this method if you wan to do additionnal things on the response and on the edit template 
    315316     * during the editupdate action. 
     317     * @param jFormsBase $form the form 
    316318     * @param jHtmlResponse $resp the response 
    317319     * @param jtpl $tpl the template to display the edit form  
    318320     */ 
    319     protected function _editUpdate($resp, $tpl) { 
     321    protected function _editUpdate($form, $resp, $tpl) { 
    320322 
    321323    } 
     
    379381        $tpl->assign('deleteAction' , $this->_getAction('delete')); 
    380382        $tpl->assign('listAction' , $this->_getAction('index')); 
    381         $this->_view($rep,$tpl); 
     383        $this->_view($form, $rep, $tpl); 
    382384        $rep->body->assign($this->templateAssign, $tpl->fetch($this->viewTemplate)); 
    383385        return $rep; 
     
    387389     * overload this method if you want to do additionnal things on the response and on the view template 
    388390     * during the view action. 
     391     * @param jFormsBase $form the form 
    389392     * @param jHtmlResponse $resp the response 
    390393     * @param jtpl $tpl the template to display the form content 
    391394     */ 
    392     protected function _view($resp, $tpl) { 
     395    protected function _view($form, $resp, $tpl) { 
    393396 
    394397    } 
  • trunk/lib/jelix/core-modules/jelix/templates/crud_list.tpl

    r596 r597  
    11<h1>{@jelix~crud.title.list@}</h1> 
    22 
    3 <table class="crud-record-list" border="1"
     3<table class="crud-record-list"
    44<thead> 
    55<tr> 
  • trunk/lib/jelix/core-modules/jelix/templates/crud_list.tpl

    r596 r597  
    11<h1>{@jelix~crud.title.list@}</h1> 
    22 
    3 <table class="crud-record-list" border="1"
     3<table class="crud-record-list"
    44<thead> 
    55<tr> 
Download in other formats: Unified Diff Zip Archive