Skip to content

Commit

Permalink
Dev: PHPdoc AR model properties (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson authored and LouisGac committed Oct 9, 2017
1 parent 849c58d commit e6d6599
Show file tree
Hide file tree
Showing 17 changed files with 82 additions and 29 deletions.
2 changes: 1 addition & 1 deletion application/models/Assessment.php
Expand Up @@ -16,7 +16,7 @@
/**
* Class Assessment
*
* @property integer $id
* @property integer $id Primary key
* @property integer $sid Survey id
* @property integer $gid Group id
* @property string $scope
Expand Down
4 changes: 2 additions & 2 deletions application/models/Boxes.php
Expand Up @@ -4,11 +4,11 @@
* This is the model class for table "{{boxes}}".
*
* The followings are the available columns in table '{{boxes}}':
* @property integer $id
* @property integer $id Primary key
* @property integer $position
* @property string $url
* @property string $title
* @property string $desc
* @property string $desc Description
* @property string $page
* @property integer $usergroup UserGroup ID
*/
Expand Down
8 changes: 4 additions & 4 deletions application/models/ExpressionError.php
Expand Up @@ -15,11 +15,11 @@
/**
* Class ExpressionError
*
* @property integer $id
* @property integer $id Primary key
* @property string $errortime
* @property integer $sid
* @property integer $gid
* @property integer $qid
* @property integer $sid Survey ID
* @property integer $gid Group ID
* @property integer $qid Question ID
* @property integer $gseq
* @property integer $qseq
* @property string $type
Expand Down
2 changes: 1 addition & 1 deletion application/models/Label.php
Expand Up @@ -16,7 +16,7 @@
/**
* Class Label
*
* @property integer $lid ID
* @property integer $lid Primary Key
* @property string $code
* @property string $title
* @property integer $sortorder
Expand Down
6 changes: 3 additions & 3 deletions application/models/Notification.php
Expand Up @@ -9,12 +9,12 @@
* @property string $entity_id survey id or user id
* @property string $title
* @property string $message
* @property string $status new, read
* @property integer $importance 1 or 3. 3 will show popup on page load, 2 is reserved for future bell animation.
* @property string $display_class warning, danger, success
* @property string $status new, read
* @property DateTime $created When the notification was created
* @property DateTime $first_read When the notification was read
* @property string $hash
* @property string $created When the notification was created
* @property string $first_read When the notification was read
*/
class Notification extends LSActiveRecord
{
Expand Down
7 changes: 5 additions & 2 deletions application/models/Participant.php
Expand Up @@ -23,13 +23,16 @@ class CPDBException extends Exception {}
* This is the model class for table "{{participants}}".
*
* The followings are the available columns in table '{{participants}}':
* @property string $participant_id
* @property string $participant_id Primary Key
* @property string $firstname
* @property string $lastname
* @property string $email
* @property string $language
* @property string $blacklisted
* @property integer $blacklisted
* @property integer $owner_uid
* @property integer $created_by
* @property string $created Date-time of creation
* @property string $modified Date-time of modification
*
* @property User $owner
* @property SurveyLink[] $surveylinks
Expand Down
1 change: 1 addition & 0 deletions application/models/Plugin.php
Expand Up @@ -19,6 +19,7 @@
* @property integer $id
* @property string $name
* @property integer $active
* @property string $version
*
*/
class Plugin extends CActiveRecord {
Expand Down
15 changes: 15 additions & 0 deletions application/models/SavedControl.php
Expand Up @@ -11,6 +11,21 @@
* See COPYRIGHT.php for copyright notices and details.
*
*/

/**
* Class SavedControl
* @property integer $scid Primary key
* @property integer $sid Survey id
* @property integer $srid
* @property string $identifier
* @property string $access_code
* @property string $email
* @property string $ip
* @property string $saved_thisstep
* @property string $status
* @property string $saved_date
* @property string $refurl
*/
class SavedControl extends LSActiveRecord {

/** @inheritdoc */
Expand Down
7 changes: 7 additions & 0 deletions application/models/Session.php
Expand Up @@ -13,6 +13,13 @@
* Files Purpose: lots of common functions
*/

/**
* Class Session
*
* @property string $id Primary Key
* @property integer $expire
* @property string $data
*/
class Session extends CActiveRecord
{
/**
Expand Down
7 changes: 7 additions & 0 deletions application/models/SettingGlobal.php
Expand Up @@ -13,6 +13,13 @@
* Files Purpose: lots of common functions
*/

/**
* Class SettingGlobal
*
* @property string $stg_name Setting name
* @property string $stg_value Setting value
*
*/
class SettingGlobal extends LSActiveRecord
{
/**
Expand Down
10 changes: 5 additions & 5 deletions application/models/SettingsUser.php
Expand Up @@ -4,11 +4,11 @@
* This is the model class for table "{{settings_user}}".
*
* The followings are the available columns in table '{{settings_user}}':
* @property integer $uid
* @property string $entity
* @property string $entity_id
* @property string $stg_name
* @property string $stg_value
* @property integer $uid User id
* @property string $entity Entity name
* @property string $entity_id Entity ID
* @property string $stg_name Setting name
* @property string $stg_value Setting Value
*/
class SettingsUser extends CActiveRecord
{
Expand Down
1 change: 1 addition & 0 deletions application/models/Surveymenu.php
Expand Up @@ -16,6 +16,7 @@
* @property integer $changed_by
* @property string $created_at
* @property integer $created_by
* @property integer $active
*
* The followings are the available model relations:
* @property SurveymenuEntries[] $surveymenuEntries
Expand Down
1 change: 1 addition & 0 deletions application/models/SurveymenuEntries.php
Expand Up @@ -28,6 +28,7 @@
* @property integer $changed_by
* @property string $created_at
* @property integer $created_by
* @property integer $active
*
* The followings are the available model relations:
* @property Surveymenu $menu
Expand Down
16 changes: 15 additions & 1 deletion application/models/Template.php
Expand Up @@ -21,8 +21,22 @@ class TemplateException extends Exception {}
/**
* Class Template
*
* @property string $name Template name
* @property string $folder Template folder name eg: 'default'
* @property integer $creator User ID of Template creator
* @property string $title
* @property string $creation_date
* @property string $author
* @property string $author_email
* @property string $author_url
* @property string $copyright
* @property string $license
* @property string $version
* @property string $view_folder
* @property string $files_folder
* @property string $description
* @property string $last_update
* @property integer $owner_id
* @property string $extends_template_name
*/
class Template extends LSActiveRecord
{
Expand Down
8 changes: 6 additions & 2 deletions application/models/TemplateConfig.php
Expand Up @@ -13,10 +13,14 @@
*/

/*
* Common methods for TemplateConfiguration and TemplateManifest
*/

class TemplateConfig extends CActiveRecord
/**
* Class TemplateConfig
* Common methods for TemplateConfiguration and TemplateManifest
*
*/
class TemplateConfig extends CActiveRecord
{
/** @var string $sTemplateName The template name */
public $sTemplateName='';
Expand Down
12 changes: 6 additions & 6 deletions application/models/TemplateConfiguration.php
Expand Up @@ -18,22 +18,22 @@
* NOTE: if you only need to access to the table, you don't need to call prepareTemplateRendering
*
* The followings are the available columns in table '{{template_configuration}}':
* @property string $id
* @property integer $id Primary key
* @property string $template_name
* @property string $gsid
* @property string $sid
* @property integer $sid Survey ID
* @property integer $gsid
* @property integer $uid user ID
* @property string $files_css
* @property string $files_js
* @property string $files_print_css
* @property string $options
* @property string $cssframework_name
* @property string $cssframework_css
* @property string $cssframework_js
* @property string $viewdirectory
* @property string $filesdirectory
* @property string $packages_to_load
* @property string $packages_ltr
* @property string $packages_rtl
* @property string $packages_rtl
*
*
* @package LimeSurvey
* @subpackage Backend
Expand Down
4 changes: 2 additions & 2 deletions application/models/Token.php
Expand Up @@ -36,10 +36,10 @@
* @property integer $tid Token ID
* @property string $participant_id Participant ID
* @property string $firstname Participant's first name
* @property string $lasttname Participant's last name
* @property string $lastname Participant's last name
* @property string $email Participant's e-mail address
* @property string $emailstatus Participant's e-mail address status: OK/bounced/OptOut
* @property string $token Participant's unique token
* @property string $token Participant's token
* @property string $language Participant's language eg: en
* @property string $blacklisted Whether participant is blacklisted: (Y/N)
* @property string $sent
Expand Down

0 comments on commit e6d6599

Please sign in to comment.