Skip to content

Automated pull request - civix regenerated #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
238 changes: 15 additions & 223 deletions CRM/Scheduledcaserecipients/DAO/ScheduledCaseRecipient.php
Original file line number Diff line number Diff line change
@@ -1,231 +1,23 @@
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/

/**
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
* DAOs provide an OOP-style facade for reading and writing database records.
*
* Generated from xml/schema/CRM/Scheduledcaserecipients/ScheduledCaseRecipient.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* DAOs are a primary source for metadata in older versions of CiviCRM (<5.74)
* and are required for some subsystems (such as APIv3).
*
* This stub provides compatibility. It is not intended to be modified in a
* substantive way. Property annotations may be added, but are not required.
* @property string $id
* @property string $reminder_id
* @property string $case_role_id
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
class CRM_Scheduledcaserecipients_DAO_ScheduledCaseRecipient extends CRM_Core_DAO {
class CRM_Scheduledcaserecipients_DAO_ScheduledCaseRecipient extends CRM_Scheduledcaserecipients_DAO_Base {

/**
* static instance to hold the table name
*
* Required by older versions of CiviCRM (<5.74).
* @var string
*/
static $_tableName = 'civicrm_scheduledcaserecipient';
/**
* static instance to hold the field values
*
* @var array
*/
static $_fields = null;
/**
* static instance to hold the keys used in $_fields for each field.
*
* @var array
*/
static $_fieldKeys = null;
/**
* static instance to hold the FK relationships
*
* @var string
*/
static $_links = null;
/**
* static instance to hold the values that can
* be imported
*
* @var array
*/
static $_import = null;
/**
* static instance to hold the values that can
* be exported
*
* @var array
*/
static $_export = null;
/**
* static value to see if we should log any modifications to
* this table in the civicrm_log table
*
* @var boolean
*/
static $_log = true;
/**
* Unique ScheduledCaseRecipient ID
*
* @var int unsigned
*/
public $id;
/**
* FK to Scheduled Reminder
*
* @var int unsigned
*/
public $reminder_id;
/**
* FK to Relationship Type
*
* @var int unsigned
*/
public $case_role_id;
/**
* class constructor
*
* @return civicrm_scheduledcaserecipient
*/
function __construct() {
$this->__table = 'civicrm_scheduledcaserecipient';
parent::__construct();
}
/**
* Returns foreign keys and entity references
*
* @return array
* [CRM_Core_Reference_Interface]
*/
static function getReferenceColumns() {
if (!self::$_links) {
self::$_links = static ::createReferenceColumns(__CLASS__);
self::$_links[] = new CRM_Core_Reference_Basic(self::getTableName() , 'reminder_id', 'civicrm_action_schedule', 'id');
self::$_links[] = new CRM_Core_Reference_Basic(self::getTableName() , 'case_role_id', 'civicrm_relationship_type', 'id');
}
return self::$_links;
}
/**
* Returns all the column names of this table
*
* @return array
*/
static function &fields() {
if (!(self::$_fields)) {
self::$_fields = array(
'id' => array(
'name' => 'id',
'type' => CRM_Utils_Type::T_INT,
'description' => 'Unique ScheduledCaseRecipient ID',
'required' => true,
) ,
'reminder_id' => array(
'name' => 'reminder_id',
'type' => CRM_Utils_Type::T_INT,
'description' => 'FK to Scheduled Reminder',
'FKClassName' => 'CRM_Core_DAO_ActionSchedule',
) ,
'case_role_id' => array(
'name' => 'case_role_id',
'type' => CRM_Utils_Type::T_INT,
'description' => 'FK to Relationship Type',
'FKClassName' => 'CRM_Contact_DAO_RelationshipType',
) ,
);
}
return self::$_fields;
}
/**
* Returns an array containing, for each field, the arary key used for that
* field in self::$_fields.
*
* @return array
*/
static function &fieldKeys() {
if (!(self::$_fieldKeys)) {
self::$_fieldKeys = array(
'id' => 'id',
'reminder_id' => 'reminder_id',
'case_role_id' => 'case_role_id',
);
}
return self::$_fieldKeys;
}
/**
* Returns the names of this table
*
* @return string
*/
static function getTableName() {
return self::$_tableName;
}
/**
* Returns if this table needs to be logged
*
* @return boolean
*/
function getLog() {
return self::$_log;
}
/**
* Returns the list of fields that can be imported
*
* @param bool $prefix
*
* @return array
*/
static function &import($prefix = false) {
if (!(self::$_import)) {
self::$_import = array();
$fields = self::fields();
foreach($fields as $name => $field) {
if (CRM_Utils_Array::value('import', $field)) {
if ($prefix) {
self::$_import['scheduledcaserecipient'] = & $fields[$name];
} else {
self::$_import[$name] = & $fields[$name];
}
}
}
}
return self::$_import;
}
/**
* Returns the list of fields that can be exported
*
* @param bool $prefix
*
* @return array
*/
static function &export($prefix = false) {
if (!(self::$_export)) {
self::$_export = array();
$fields = self::fields();
foreach($fields as $name => $field) {
if (CRM_Utils_Array::value('export', $field)) {
if ($prefix) {
self::$_export['scheduledcaserecipient'] = & $fields[$name];
} else {
self::$_export[$name] = & $fields[$name];
}
}
}
}
return self::$_export;
}
public static $_tableName = 'civicrm_scheduledcaserecipient';

}
Loading