*
* Generated from xml/schema/CRM/Core/Component.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:139dcaac103194eb41070ed8d7753d90)
+ * (GenCodeChecksum:14ca0040d5a5656fd5dd91ad60a8ac89)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Core_DAO_Component constructor.
+ */
class CRM_Core_DAO_Component extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_component';
/**
- * static value to see if we should log any modifications to
- * this table in the civicrm_log table
+ * Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var boolean
*/
*/
public $namespace;
/**
- * class constructor
- *
- * @return civicrm_component
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_component';
'type' => CRM_Utils_Type::T_INT,
'description' => 'Component ID',
'required' => true,
+ 'table_name' => 'civicrm_component',
+ 'entity' => 'Component',
+ 'bao' => 'CRM_Core_DAO_Component',
+ 'localizable' => 0,
) ,
'name' => array(
'name' => 'name',
'required' => true,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'table_name' => 'civicrm_component',
+ 'entity' => 'Component',
+ 'bao' => 'CRM_Core_DAO_Component',
+ 'localizable' => 0,
) ,
'namespace' => array(
'name' => 'namespace',
',
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'table_name' => 'civicrm_component',
+ 'entity' => 'Component',
+ 'bao' => 'CRM_Core_DAO_Component',
+ 'localizable' => 0,
) ,
);
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
$r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'component', $prefix, array());
return $r;
}
+ /**
+ * Returns the list of indices
+ */
+ public static function indices($localize = TRUE) {
+ $indices = array();
+ return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
+ }
}