*
* @var string
*/
- static $_tableName = 'civicrm_cache';
+ public static $_tableName = 'civicrm_cache';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
- static $_log = FALSE;
+ public static $_log = FALSE;
/**
* @var int unsigned
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
- Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+ Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'component_id', 'civicrm_component', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
'name' => 'id',
'type' => CRM_Utils_Type::T_INT,
'required' => TRUE,
+ 'where' => 'civicrm_cache.id',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'bao' => 'CRM_Core_BAO_Cache',
'required' => TRUE,
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_cache.group_name',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'bao' => 'CRM_Core_BAO_Cache',
'description' => ts('Unique path name for cache element'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_cache.path',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'bao' => 'CRM_Core_BAO_Cache',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Data'),
'description' => ts('data associated with this path'),
+ 'where' => 'civicrm_cache.data',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'bao' => 'CRM_Core_BAO_Cache',
'name' => 'component_id',
'type' => CRM_Utils_Type::T_INT,
'description' => ts('Component that this menu item belongs to'),
+ 'where' => 'civicrm_cache.component_id',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'bao' => 'CRM_Core_BAO_Cache',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Created Date'),
'description' => ts('When was the cache item created'),
+ 'where' => 'civicrm_cache.created_date',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'title' => ts('Expired Date'),
'description' => ts('When should the cache item expire'),
'required' => FALSE,
+ 'where' => 'civicrm_cache.expired_date',
'default' => 'NULL',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',