Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Refactor the 'participantsaction' admin controller - GCI Task #7…
…247202 by gautamgupta git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11743 b72ed6b6-b9f8-46b5-92b4-906544132732
- Loading branch information
1 parent
888498c
commit 8e63b9d
Showing
17 changed files
with
2,978 additions
and
2,877 deletions.
There are no files selected for viewing
1,125 changes: 575 additions & 550 deletions
1,125
application/controllers/admin/participantsaction.php
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | ||
/* | ||
* LimeSurvey | ||
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz | ||
* All rights reserved. | ||
* License: GNU/GPL License v2 or later, see LICENSE.php | ||
* LimeSurvey is free software. This version may have been modified pursuant | ||
* to the GNU General Public License, and as distributed it includes or | ||
* is derivative of works licensed under the GNU General Public License or | ||
* other free or open source software licenses. | ||
* See COPYRIGHT.php for copyright notices and details. | ||
* | ||
* $Id: Survey_links.php -1 $ | ||
* Files Purpose: lots of common functions | ||
*/ | ||
|
||
class Survey_links extends CActiveRecord | ||
{ | ||
|
||
/** | ||
* Returns the static model of Settings table | ||
* | ||
* @static | ||
* @access public | ||
* @return CActiveRecord | ||
*/ | ||
public static function model() | ||
{ | ||
return parent::model(__CLASS__); | ||
} | ||
|
||
/** | ||
* Returns the setting's table name to be used by the model | ||
* | ||
* @access public | ||
* @return string | ||
*/ | ||
public function tableName() | ||
{ | ||
return '{{survey_links}}'; | ||
} | ||
|
||
/** | ||
* Returns the primary key of this table | ||
* | ||
* @access public | ||
* @return string | ||
*/ | ||
public function primaryKey() | ||
{ | ||
return array('participant_id', 'token_id', 'survey_id'); | ||
} | ||
|
||
function getLinkInfo($participantid) | ||
{ | ||
return self::model()->findAllByAttributes(array('participant_id' => $participantid)); | ||
} | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.