Changeset 571
- Timestamp:
- 09/04/07 11:10:30 (1 year ago)
- Files:
-
- trunk/build/manifests/jelix-lib.mn (modified) (1 diff)
- trunk/build/manifests/jelix-lib.mn (modified) (1 diff)
- trunk/build/manifests/testapp.mn (modified) (1 diff)
- trunk/build/manifests/testapp.mn (modified) (1 diff)
- trunk/lib/jelix/controllers/jControllerDaoCrud.class.php (modified) (3 diffs)
- trunk/lib/jelix/controllers/jControllerDaoCrud.class.php (modified) (3 diffs)
- trunk/lib/jelix/core-modules/jelix/locales/en_EN/crud.ISO-8859-1.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/en_EN/crud.ISO-8859-1.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/en_EN/crud.UTF-8.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/en_EN/crud.UTF-8.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/en_US/crud.ISO-8859-1.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/en_US/crud.ISO-8859-1.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/en_US/crud.UTF-8.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/en_US/crud.UTF-8.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/fr_FR/crud.ISO-8859-1.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/fr_FR/crud.ISO-8859-1.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/fr_FR/crud.UTF-8.properties (added)
- trunk/lib/jelix/core-modules/jelix/locales/fr_FR/crud.UTF-8.properties (added)
- trunk/lib/jelix/core-modules/jelix/templates/crud_edit.tpl (modified) (2 diffs)
- trunk/lib/jelix/core-modules/jelix/templates/crud_edit.tpl (modified) (2 diffs)
- trunk/lib/jelix/core-modules/jelix/templates/crud_list.tpl (modified) (2 diffs)
- trunk/lib/jelix/core-modules/jelix/templates/crud_list.tpl (modified) (2 diffs)
- trunk/lib/jelix/core-modules/jelix/templates/crud_view.tpl (modified) (1 diff)
- trunk/lib/jelix/core-modules/jelix/templates/crud_view.tpl (modified) (1 diff)
- trunk/lib/jelix/forms/jFormsBase.class.php (modified) (4 diffs)
- trunk/lib/jelix/forms/jFormsBase.class.php (modified) (4 diffs)
- trunk/lib/jelix/tpl/jTplCompiler.class.php (modified) (1 diff)
- trunk/lib/jelix/tpl/jTplCompiler.class.php (modified) (1 diff)
- trunk/testapp/install/install.mysql.sql (modified) (2 diffs)
- trunk/testapp/install/install.mysql.sql (modified) (2 diffs)
- trunk/testapp/modules/jelix_tests/tests/jtpl.expressions_parsing.html_cli.php (modified) (1 diff)
- trunk/testapp/modules/jelix_tests/tests/jtpl.expressions_parsing.html_cli.php (modified) (1 diff)
- trunk/testapp/modules/testapp/controllers/samplecrud.classic.php (modified) (1 diff)
- trunk/testapp/modules/testapp/controllers/samplecrud.classic.php (modified) (1 diff)
- trunk/testapp/modules/testapp/daos/products.dao.xml (added)
- trunk/testapp/modules/testapp/daos/products.dao.xml (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/manifests/jelix-lib.mn
r570 r571 87 87 install_jacl.datas.mysql.sql 88 88 cd lib/jelix/core-modules/jelix/locales/en_US 89 auth.ISO-8859-1.properties 90 auth.UTF-8.properties 91 common.ISO-8859-1.properties 92 common.UTF-8.properties 93 crud.ISO-8859-1.properties 94 crud.UTF-8.properties 89 95 dao.ISO-8859-1.properties 96 dao.UTF-8.properties 90 97 daoxml.ISO-8859-1.properties 98 daoxml.UTF-8.properties 91 99 db.ISO-8859-1.properties 100 db.UTF-8.properties 101 errors.ISO-8859-1.properties 102 errors.UTF-8.properties 103 format.ISO-8859-1.properties 104 format.UTF-8.properties 105 formserr.ISO-8859-1.properties 106 formserr.UTF-8.properties 107 jelix.ISO-8859-1.properties 108 jelix.UTF-8.properties 109 ui.ISO-8859-1.properties 110 ui.UTF-8.properties 111 cd lib/jelix/core-modules/jelix/locales/en_EN 112 auth.ISO-8859-1.properties 113 auth.UTF-8.properties 92 114 common.ISO-8859-1.properties 115 common.UTF-8.properties 116 crud.ISO-8859-1.properties 117 crud.UTF-8.properties 118 dao.ISO-8859-1.properties 119 dao.UTF-8.properties 120 daoxml.ISO-8859-1.properties 121 daoxml.UTF-8.properties 122 db.ISO-8859-1.properties 123 db.UTF-8.properties 124 errors.ISO-8859-1.properties 125 errors.UTF-8.properties 93 126 format.ISO-8859-1.properties 127 format.UTF-8.properties 94 128 formserr.ISO-8859-1.properties 129 formserr.UTF-8.properties 95 130 jelix.ISO-8859-1.properties 131 jelix.UTF-8.properties 132 ui.ISO-8859-1.properties 133 ui.UTF-8.properties 134 cd lib/jelix/core-modules/jelix/locales/fr_FR 135 auth.ISO-8859-1.properties 136 auth.UTF-8.properties 137 common.ISO-8859-1.properties 138 common.UTF-8.properties 139 crud.ISO-8859-1.properties 140 crud.UTF-8.properties 141 dao.ISO-8859-1.properties 142 dao.UTF-8.properties 143 daoxml.ISO-8859-1.properties 144 daoxml.UTF-8.properties 145 db.ISO-8859-1.properties 146 db.UTF-8.properties 96 147 errors.ISO-8859-1.properties 148 errors.UTF-8.properties 149 format.ISO-8859-1.properties 150 format.UTF-8.properties 151 formserr.ISO-8859-1.properties 152 formserr.UTF-8.properties 153 jelix.ISO-8859-1.properties 154 jelix.UTF-8.properties 97 155 ui.ISO-8859-1.properties 98 auth.ISO-8859-1.properties99 dao.UTF-8.properties100 daoxml.UTF-8.properties101 db.UTF-8.properties102 common.UTF-8.properties103 format.UTF-8.properties104 formserr.UTF-8.properties105 jelix.UTF-8.properties106 errors.UTF-8.properties107 156 ui.UTF-8.properties 108 auth.ISO-8859-1.properties109 cd lib/jelix/core-modules/jelix/locales/en_EN110 dao.ISO-8859-1.properties111 daoxml.ISO-8859-1.properties112 db.ISO-8859-1.properties113 common.ISO-8859-1.properties114 format.ISO-8859-1.properties115 formserr.ISO-8859-1.properties116 jelix.ISO-8859-1.properties117 errors.ISO-8859-1.properties118 ui.ISO-8859-1.properties119 auth.ISO-8859-1.properties120 dao.UTF-8.properties121 daoxml.UTF-8.properties122 db.UTF-8.properties123 common.UTF-8.properties124 format.UTF-8.properties125 formserr.UTF-8.properties126 jelix.UTF-8.properties127 errors.UTF-8.properties128 ui.UTF-8.properties129 auth.ISO-8859-1.properties130 cd lib/jelix/core-modules/jelix/locales/fr_FR131 dao.ISO-8859-1.properties132 daoxml.ISO-8859-1.properties133 db.ISO-8859-1.properties134 common.ISO-8859-1.properties135 format.ISO-8859-1.properties136 formserr.ISO-8859-1.properties137 jelix.ISO-8859-1.properties138 errors.ISO-8859-1.properties139 ui.ISO-8859-1.properties140 auth.ISO-8859-1.properties141 dao.UTF-8.properties142 daoxml.UTF-8.properties143 db.UTF-8.properties144 common.UTF-8.properties145 format.UTF-8.properties146 formserr.UTF-8.properties147 jelix.UTF-8.properties148 errors.UTF-8.properties149 ui.UTF-8.properties150 auth.UTF-8.properties151 157 cd lib/jelix/core-modules/jelix/templates 152 158 404.xul.tpl trunk/build/manifests/jelix-lib.mn
r570 r571 87 87 install_jacl.datas.mysql.sql 88 88 cd lib/jelix/core-modules/jelix/locales/en_US 89 auth.ISO-8859-1.properties 90 auth.UTF-8.properties 91 common.ISO-8859-1.properties 92 common.UTF-8.properties 93 crud.ISO-8859-1.properties 94 crud.UTF-8.properties 89 95 dao.ISO-8859-1.properties 96 dao.UTF-8.properties 90 97 daoxml.ISO-8859-1.properties 98 daoxml.UTF-8.properties 91 99 db.ISO-8859-1.properties 100 db.UTF-8.properties 101 errors.ISO-8859-1.properties 102 errors.UTF-8.properties 103 format.ISO-8859-1.properties 104 format.UTF-8.properties 105 formserr.ISO-8859-1.properties 106 formserr.UTF-8.properties 107 jelix.ISO-8859-1.properties 108 jelix.UTF-8.properties 109 ui.ISO-8859-1.properties 110 ui.UTF-8.properties 111 cd lib/jelix/core-modules/jelix/locales/en_EN 112 auth.ISO-8859-1.properties 113 auth.UTF-8.properties 92 114 common.ISO-8859-1.properties 115 common.UTF-8.properties 116 crud.ISO-8859-1.properties 117 crud.UTF-8.properties 118 dao.ISO-8859-1.properties 119 dao.UTF-8.properties 120 daoxml.ISO-8859-1.properties 121 daoxml.UTF-8.properties 122 db.ISO-8859-1.properties 123 db.UTF-8.properties 124 errors.ISO-8859-1.properties 125 errors.UTF-8.properties 93 126 format.ISO-8859-1.properties 127 format.UTF-8.properties 94 128 formserr.ISO-8859-1.properties 129 formserr.UTF-8.properties 95 130 jelix.ISO-8859-1.properties 131 jelix.UTF-8.properties 132 ui.ISO-8859-1.properties 133 ui.UTF-8.properties 134 cd lib/jelix/core-modules/jelix/locales/fr_FR 135 auth.ISO-8859-1.properties 136 auth.UTF-8.properties 137 common.ISO-8859-1.properties 138 common.UTF-8.properties 139 crud.ISO-8859-1.properties 140 crud.UTF-8.properties 141 dao.ISO-8859-1.properties 142 dao.UTF-8.properties 143 daoxml.ISO-8859-1.properties 144 daoxml.UTF-8.properties 145 db.ISO-8859-1.properties 146 db.UTF-8.properties 96 147 errors.ISO-8859-1.properties 148 errors.UTF-8.properties 149 format.ISO-8859-1.properties 150 format.UTF-8.properties 151 formserr.ISO-8859-1.properties 152 formserr.UTF-8.properties 153 jelix.ISO-8859-1.properties 154 jelix.UTF-8.properties 97 155 ui.ISO-8859-1.properties 98 auth.ISO-8859-1.properties99 dao.UTF-8.properties100 daoxml.UTF-8.properties101 db.UTF-8.properties102 common.UTF-8.properties103 format.UTF-8.properties104 formserr.UTF-8.properties105 jelix.UTF-8.properties106 errors.UTF-8.properties107 156 ui.UTF-8.properties 108 auth.ISO-8859-1.properties109 cd lib/jelix/core-modules/jelix/locales/en_EN110 dao.ISO-8859-1.properties111 daoxml.ISO-8859-1.properties112 db.ISO-8859-1.properties113 common.ISO-8859-1.properties114 format.ISO-8859-1.properties115 formserr.ISO-8859-1.properties116 jelix.ISO-8859-1.properties117 errors.ISO-8859-1.properties118 ui.ISO-8859-1.properties119 auth.ISO-8859-1.properties120 dao.UTF-8.properties121 daoxml.UTF-8.properties122 db.UTF-8.properties123 common.UTF-8.properties124 format.UTF-8.properties125 formserr.UTF-8.properties126 jelix.UTF-8.properties127 errors.UTF-8.properties128 ui.UTF-8.properties129 auth.ISO-8859-1.properties130 cd lib/jelix/core-modules/jelix/locales/fr_FR131 dao.ISO-8859-1.properties132 daoxml.ISO-8859-1.properties133 db.ISO-8859-1.properties134 common.ISO-8859-1.properties135 format.ISO-8859-1.properties136 formserr.ISO-8859-1.properties137 jelix.ISO-8859-1.properties138 errors.ISO-8859-1.properties139 ui.ISO-8859-1.properties140 auth.ISO-8859-1.properties141 dao.UTF-8.properties142 daoxml.UTF-8.properties143 db.UTF-8.properties144 common.UTF-8.properties145 format.UTF-8.properties146 formserr.UTF-8.properties147 jelix.UTF-8.properties148 errors.UTF-8.properties149 ui.UTF-8.properties150 auth.UTF-8.properties151 157 cd lib/jelix/core-modules/jelix/templates 152 158 404.xul.tpl trunk/build/manifests/testapp.mn
r569 r571 36 36 config.dao.xml 37 37 testnews.dao.xml 38 products.dao.xml 38 39 cd testapp/modules/testapp/controllers 39 40 main.classic.php trunk/build/manifests/testapp.mn
r569 r571 36 36 config.dao.xml 37 37 testnews.dao.xml 38 products.dao.xml 38 39 cd testapp/modules/testapp/controllers 39 40 main.classic.php trunk/lib/jelix/controllers/jControllerDaoCrud.class.php
r570 r571 85 85 protected $pseudoFormId = 'jelix_crud_roxor'; 86 86 87 88 protected $uploadsDirectory =''; 89 87 90 /** 88 91 * Returned a simple html response to display CRUD contents. You can override this … … 182 185 if($form->check() && $this->_checkDatas($form)){ 183 186 $id = $form->saveToDao($this->dao); 187 $form->saveAllFiles($this->uploadsDirectory); 184 188 $rep->action = $this->_getAction('view'); 185 189 jForms::destroy($this->form); … … 257 261 if($form->check() && $this->_checkDatas($form)){ 258 262 $id = $form->saveToDao($this->dao); 263 $form->saveAllFiles($this->uploadsDirectory); 259 264 $rep->action = $this->_getAction('view'); 260 265 jForms::destroy($this->form, $id); trunk/lib/jelix/controllers/jControllerDaoCrud.class.php
r570 r571 85 85 protected $pseudoFormId = 'jelix_crud_roxor'; 86 86 87 88 protected $uploadsDirectory =''; 89 87 90 /** 88 91 * Returned a simple html response to display CRUD contents. You can override this … … 182 185 if($form->check() && $this->_checkDatas($form)){ 183 186 $id = $form->saveToDao($this->dao); 187 $form->saveAllFiles($this->uploadsDirectory); 184 188 $rep->action = $this->_getAction('view'); 185 189 jForms::destroy($this->form); … … 257 261 if($form->check() && $this->_checkDatas($form)){ 258 262 $id = $form->saveToDao($this->dao); 263 $form->saveAllFiles($this->uploadsDirectory); 259 264 $rep->action = $this->_getAction('view'); 260 265 jForms::destroy($this->form, $id); trunk/lib/jelix/core-modules/jelix/templates/crud_edit.tpl
r568 r571 1 1 {if $id === null} 2 2 3 <h1> Create a new record</h1>3 <h1>{@jelix~crud.title.create@}</h1> 4 4 {formfull $form, $submitAction} 5 5 6 6 {else} 7 7 8 <h1> Edit a record</h1>8 <h1>{@jelix~crud.title.update@}</h1> 9 9 {formfull $form, $submitAction, array('id'=>$id)} 10 10 … … 13 13 14 14 15 <p><a href="{jurl $listAction}" >Return to the list</a>.</p>15 <p><a href="{jurl $listAction}" class="crud-link">{@jelix~crud.link.return.to.list@}</a>.</p> trunk/lib/jelix/core-modules/jelix/templates/crud_edit.tpl
r568 r571 1 1 {if $id === null} 2 2 3 <h1> Create a new record</h1>3 <h1>{@jelix~crud.title.create@}</h1> 4 4 {formfull $form, $submitAction} 5 5 6 6 {else} 7 7 8 <h1> Edit a record</h1>8 <h1>{@jelix~crud.title.update@}</h1> 9 9 {formfull $form, $submitAction, array('id'=>$id)} 10 10 … … 13 13 14 14 15 <p><a href="{jurl $listAction}" >Return to the list</a>.</p>15 <p><a href="{jurl $listAction}" class="crud-link">{@jelix~crud.link.return.to.list@}</a>.</p> trunk/lib/jelix/core-modules/jelix/templates/crud_list.tpl
r570 r571 1 <h1> List</h1>1 <h1>{@jelix~crud.title.list@}</h1> 2 2 3 <table >3 <table class="crud-record-list"> 4 4 {foreach $list as $record} 5 5 <tr> … … 8 8 {/foreach} 9 9 <td> 10 <a href="{jurl $viewAction,array('id'=>$record->$primarykey)}"> View</a>10 <a href="{jurl $viewAction,array('id'=>$record->$primarykey)}">{@jelix~crud.link.view.record@}</a> 11 11 </td> 12 12 </tr> 13 13 {/foreach} 14 14 </table> 15 <p >Pages : {pagelinks $listAction, array(), $recordCount, $page, $listPageSize, $offsetParameterName }</p>16 <p><a href="{jurl $createAction}" >Create a new record</a>.</p>15 <p class="crud-pages">Pages : {pagelinks $listAction, array(), $recordCount, $page, $listPageSize, $offsetParameterName }</p> 16 <p><a href="{jurl $createAction}" class="crud-link">{@jelix~crud.link.create.record@}</a>.</p> 17 17 trunk/lib/jelix/core-modules/jelix/templates/crud_list.tpl
r570 r571 1 <h1> List</h1>1 <h1>{@jelix~crud.title.list@}</h1> 2 2 3 <table >3 <table class="crud-record-list"> 4 4 {foreach $list as $record} 5 5 <tr> … … 8 8 {/foreach} 9 9 <td> 10 <a href="{jurl $viewAction,array('id'=>$record->$primarykey)}"> View</a>10 <a href="{jurl $viewAction,array('id'=>$record->$primarykey)}">{@jelix~crud.link.view.record@}</a> 11 11 </td> 12 12 </tr> 13 13 {/foreach} 14 14 </table> 15 <p >Pages : {pagelinks $listAction, array(), $recordCount, $page, $listPageSize, $offsetParameterName }</p>16 <p><a href="{jurl $createAction}" >Create a new record</a>.</p>15 <p class="crud-pages">Pages : {pagelinks $listAction, array(), $recordCount, $page, $listPageSize, $offsetParameterName }</p> 16 <p><a href="{jurl $createAction}" class="crud-link">{@jelix~crud.link.create.record@}</a>.</p> 17 17 trunk/lib/jelix/core-modules/jelix/templates/crud_view.tpl
r568 r571 1 <h1> View of a record</h1>1 <h1>{@jelix~crud.title.view@}</h1> 2 2 {formdatasfull $form} 3 3 4 4 5 5 <ul> 6 <li><a href="{jurl $editAction, array('id'=>$id)}" >Edit this record</a></li>7 <li><a href="{jurl $deleteAction, array('id'=>$id)}" >Delete this record</a></li>8 <li><a href="{jurl $listAction}" >Return to the list</a></li>6 <li><a href="{jurl $editAction, array('id'=>$id)}" class="crud-link">{@jelix~crud.link.edit.record@}</a></li> 7 <li><a href="{jurl $deleteAction, array('id'=>$id)}" class="crud-link" onclick="return confirm('{@jelix~crud.confirm.deletion@}')">{@jelix~crud.link.delete.record@}</a></li> 8 <li><a href="{jurl $listAction}" class="crud-link">{@jelix~crud.link.return.to.list@}</a></li> 9 9 </ul> 10 10 trunk/lib/jelix/core-modules/jelix/templates/crud_view.tpl
r568 r571 1 <h1> View of a record</h1>1 <h1>{@jelix~crud.title.view@}</h1> 2 2 {formdatasfull $form} 3 3 4 4 5 5 <ul> 6 <li><a href="{jurl $editAction, array('id'=>$id)}" >Edit this record</a></li>7 <li><a href="{jurl $deleteAction, array('id'=>$id)}" >Delete this record</a></li>8 <li><a href="{jurl $listAction}" >Return to the list</a></li>6 <li><a href="{jurl $editAction, array('id'=>$id)}" class="crud-link">{@jelix~crud.link.edit.record@}</a></li> 7 <li><a href="{jurl $deleteAction, array('id'=>$id)}" class="crud-link" onclick="return confirm('{@jelix~crud.confirm.deletion@}')">{@jelix~crud.link.delete.record@}</a></li> 8 <li><a href="{jurl $listAction}" class="crud-link">{@jelix~crud.link.return.to.list@}</a></li> 9 9 </ul> 10 10 trunk/lib/jelix/forms/jFormsBase.class.php
r567 r571 432 432 $path = JELIX_APP_VAR_PATH.'uploads/'.$this->_sel.'/'; 433 433 434 jFile::createDir($path);435 436 434 if(!isset($this->_controls[$controlName]) || $this->_controls[$controlName]->type != 'upload') 437 435 throw new jExceptionForms('jelix~formserr.invalid.upload.control.name', array($controlName, $this->_sel)); … … 443 441 return false; 444 442 } 443 jFile::createDir($path); 445 444 move_uploaded_file($_FILES[$controlName]['tmp_name'], $path); 446 445 return true; … … 458 457 $path = JELIX_APP_VAR_PATH.'uploads/'.$this->_sel.'/'; 459 458 460 jFile::createDir($path); 459 if(count($this->_uploads)) 460 jFile::createDir($path); 461 461 462 462 foreach($this->_uploads as $ref=>$ctrl){ … … 487 487 } 488 488 } 489 490 491 492 489 } 493 490 494 495 491 ?> trunk/lib/jelix/forms/jFormsBase.class.php
r567 r571 432 432 $path = JELIX_APP_VAR_PATH.'uploads/'.$this->_sel.'/'; 433 433 434 jFile::createDir($path);435 436 434 if(!isset($this->_controls[$controlName]) || $this->_controls[$controlName]->type != 'upload') 437 435 throw new jExceptionForms('jelix~formserr.invalid.upload.control.name', array($controlName, $this->_sel)); … … 443 441 return false; 444 442 } 443 jFile::createDir($path); 445 444 move_uploaded_file($_FILES[$controlName]['tmp_name'], $path); 446 445 return true; … … 458 457 $path = JELIX_APP_VAR_PATH.'uploads/'.$this->_sel.'/'; 459 458 460 jFile::createDir($path); 459 if(count($this->_uploads)) 460 jFile::createDir($path); 461 461 462 462 foreach($this->_uploads as $ref=>$ctrl){ … … 487 487 } 488 488 } 489 490 491 492 489 } 493 490 494 495 491 ?> trunk/lib/jelix/tpl/jTplCompiler.class.php
r538 r571 41 41 T_CONST, T_CONTINUE, T_DECLARE, T_DEFAULT, T_DO, T_ECHO, T_ELSE, T_ELSEIF, T_EMPTY, 42 42 T_EXIT, T_FINAL, T_FOR, T_FOREACH, T_FUNCTION, T_GLOBAL, T_IF, T_IMPLEMENTS, T_INSTANCEOF, 43 T_INTERFACE, T_L OGICAL_AND, T_LOGICAL_OR, T_LOGICAL_XOR, T_NEW, T_PRIVATE, T_PUBLIC,43 T_INTERFACE, T_LIST, T_LOGICAL_AND, T_LOGICAL_OR, T_LOGICAL_XOR, T_NEW, T_PRIVATE, T_PUBLIC, 44 44 T_PROTECTED, T_RETURN, T_STATIC, T_SWITCH, T_THROW, T_TRY, T_USE, T_VAR, T_WHILE, 45 45 T_DNUMBER, T_LNUMBER); trunk/lib/jelix/tpl/jTplCompiler.class.php
r538 r571 41 41 T_CONST, T_CONTINUE, T_DECLARE, T_DEFAULT, T_DO, T_ECHO, T_ELSE, T_ELSEIF, T_EMPTY, 42 42 T_EXIT, T_FINAL, T_FOR, T_FOREACH, T_FUNCTION, T_GLOBAL, T_IF, T_IMPLEMENTS, T_INSTANCEOF, 43 T_INTERFACE, T_L OGICAL_AND, T_LOGICAL_OR, T_LOGICAL_XOR, T_NEW, T_PRIVATE, T_PUBLIC,43 T_INTERFACE, T_LIST, T_LOGICAL_AND, T_LOGICAL_OR, T_LOGICAL_XOR, T_NEW, T_PRIVATE, T_PUBLIC, 44 44 T_PROTECTED, T_RETURN, T_STATIC, T_SWITCH, T_THROW, T_TRY, T_USE, T_VAR, T_WHILE, 45 45 T_DNUMBER, T_LNUMBER); trunk/testapp/install/install.mysql.sql
r504 r571 121 121 ('test', '33'); 122 122 123 123 -- for unit tests 124 124 CREATE TABLE `product_test` ( 125 125 `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , … … 133 133 PRIMARY KEY ( `product_id` , `tag` ) 134 134 ) ENGINE = MYISAM ; 135 136 -- for the crud example 137 CREATE TABLE `products` ( 138 `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , 139 `name` VARCHAR( 150 ) NOT NULL , 140 `price` FLOAT NOT NULL 141 ) TYPE = MYISAM ; trunk/testapp/install/install.mysql.sql
r504 r571 121 121 ('test', '33'); 122 122 123 123 -- for unit tests 124 124 CREATE TABLE `product_test` ( 125 125 `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , … … 133 133 PRIMARY KEY ( `product_id` , `tag` ) 134 134 ) ENGINE = MYISAM ; 135 136 -- for the crud example 137 CREATE TABLE `products` ( 138 `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , 139 `name` VARCHAR( 150 ) NOT NULL , 140 `price` FLOAT NOT NULL 141 ) TYPE = MYISAM ; trunk/testapp/modules/jelix_tests/tests/jtpl.expressions_parsing.html_cli.php
r539 r571 76 76 '@aa~trc.234.popo@'=>'jLocale::get(\'aa~trc.234.popo\')', 77 77 '@aa~trc.23.4.popo@'=>'jLocale::get(\'aa~trc.23.4.popo\')', 78 '@aa~trc.23.4.list@'=>'jLocale::get(\'aa~trc.23.4.list\')', 78 79 '$aa*count($bb)'=>'$t->_vars[\'aa\']*count($t->_vars[\'bb\'])', 79 80 '$aa & $bb'=>'$t->_vars[\'aa\'] & $t->_vars[\'bb\']', trunk/testapp/modules/jelix_tests/tests/jtpl.expressions_parsing.html_cli.php
r539 r571 76 76 '@aa~trc.234.popo@'=>'jLocale::get(\'aa~trc.234.popo\')', 77 77 '@aa~trc.23.4.popo@'=>'jLocale::get(\'aa~trc.23.4.popo\')', 78 '@aa~trc.23.4.list@'=>'jLocale::get(\'aa~trc.23.4.list\')', 78 79 '$aa*count($bb)'=>'$t->_vars[\'aa\']*count($t->_vars[\'bb\'])', 79 80 '$aa & $bb'=>'$t->_vars[\'aa\'] & $t->_vars[\'bb\']', trunk/testapp/modules/testapp/controllers/samplecrud.classic.php
r570 r571 17 17 protected $listPageSize = 5; 18 18 19 protected $dao = ' jelix_tests~products';19 protected $dao = 'testapp~products'; 20 20 21 21 protected $form = 'testapp~products'; trunk/testapp/modules/testapp/controllers/samplecrud.classic.php
r570 r571 17 17 protected $listPageSize = 5; 18 18 19 protected $dao = ' jelix_tests~products';19 protected $dao = 'testapp~products'; 20 20 21 21 protected $form = 'testapp~products';
