From: <gem...@li...> - 2013-03-14 11:45:15
|
Revision: 1183 http://sourceforge.net/p/gemstracker/code/1183 Author: matijsdejong Date: 2013-03-14 11:45:12 +0000 (Thu, 14 Mar 2013) Log Message: ----------- The default GemsTracker installation is now international The default NewProject is setup for Dutch respondents Modified Paths: -------------- trunk/library/configs/db/tables/gems__respondent2org.50.sql trunk/library/configs/db/tables/gems__respondents.30.sql trunk/library/controllers/RespondentController.php Added Paths: ----------- trunk/new_project/application/classes/NewProject/Model/ trunk/new_project/application/classes/NewProject/Model/RespondentModel.php trunk/new_project/application/configs/db/ trunk/new_project/application/configs/db/tables/ Modified: trunk/library/configs/db/tables/gems__respondent2org.50.sql =================================================================== --- trunk/library/configs/db/tables/gems__respondent2org.50.sql 2013-03-14 11:27:20 UTC (rev 1182) +++ trunk/library/configs/db/tables/gems__respondent2org.50.sql 2013-03-14 11:45:12 UTC (rev 1183) @@ -10,7 +10,7 @@ -- gr2o_id_physician bigint unsigned null -- references gems_staff (gsf_id_user), - gr2o_treatment varchar(200) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, + -- gr2o_treatment varchar(200) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, gr2o_comments text CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, gr2o_consent varchar(20) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null default 'Unknown' Modified: trunk/library/configs/db/tables/gems__respondents.30.sql =================================================================== --- trunk/library/configs/db/tables/gems__respondents.30.sql 2013-03-14 11:27:20 UTC (rev 1182) +++ trunk/library/configs/db/tables/gems__respondents.30.sql 2013-03-14 11:45:12 UTC (rev 1183) @@ -10,7 +10,7 @@ grs_email varchar(100) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' null, grs_first_name varchar(30) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', - grs_surname_prefix varchar(10) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', + -- grs_surname_prefix varchar(10) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', grs_last_name varchar(50) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci', grs_gender char(1) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' not null default 'U', Modified: trunk/library/controllers/RespondentController.php =================================================================== --- trunk/library/controllers/RespondentController.php 2013-03-14 11:27:20 UTC (rev 1182) +++ trunk/library/controllers/RespondentController.php 2013-03-14 11:45:12 UTC (rev 1183) @@ -1,6 +1,5 @@ <?php - /** * Copyright (c) 2011, Erasmus MC * All rights reserved. @@ -26,8 +25,23 @@ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * @package Gems + * @subpackage Default + * @author Matijs de Jong <mj...@ma...> + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @version $Id$ */ -class RespondentController extends Gems_Default_RespondentAction +/** + * Stub for RespondentNewAction, that allows overrulling of this controller in a project. + * + * @package Gems + * @subpackage Default + * @copyright Copyright (c) 2011 Erasmus MC + * @license New BSD License + * @since Class available since version 1.0 + */ +class RespondentController extends Gems_Default_RespondentNewAction { } \ No newline at end of file Added: trunk/new_project/application/classes/NewProject/Model/RespondentModel.php =================================================================== --- trunk/new_project/application/classes/NewProject/Model/RespondentModel.php (rev 0) +++ trunk/new_project/application/classes/NewProject/Model/RespondentModel.php 2013-03-14 11:45:12 UTC (rev 1183) @@ -0,0 +1,77 @@ +<?php + +/** + * Copyright (c) 2012, Erasmus MC + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of Erasmus MC nor the + * names of its contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * + * @package Gems + * @subpackage Model + * @author Matijs de Jong <mj...@ma...> + * @copyright Copyright (c) 2012 Erasmus MC + * @license New BSD License + * @version $id: RespondentModel.php 203 2012-01-01t 12:51:32Z matijs $ + */ + +/** + * Default inmplementation of Dutch respondent model + * + * @package Gems + * @subpackage Model + * @copyright Copyright (c) 2012 Erasmus MC + * @license New BSD License + * @since Class available since version 1.6 + */ +class NewProject_Model_RespondentModel extends Gems_Model_RespondentNlModel +{ + /** + * Set those settings needed for the detailed display + * + * @param mixed $locale The locale for the settings + * @return \Gems_Model_RespondentModel + */ + public function applyDetailSettings($locale = null) + { + parent::applyDetailSettings($locale); + + // $translator = $this->translate->getAdapter(); + // $this->setIfExists('grs_phone_2', 'label', $translator->_('Mobile phone')); + + return $this; + } + + /** + * Set those values needed for editing + * + * @param mixed $locale The locale for the settings + * @return \Gems_Model_RespondentModel + * / + public function applyEditSettings($locale = null) + { + parent::applyEditSettings($locale); + + return $this; + } // */ +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |