Ejemplo n.º 1
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'group_name' => array('name' => 'group_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Group Name'), 'required' => true, 'maxlength' => 32, 'size' => CRM_Utils_Type::MEDIUM), 'path' => array('name' => 'path', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Path'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Data')), 'component_id' => array('name' => 'component_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Core_DAO_Component', 'pseudoconstant' => array('table' => 'civicrm_component', 'keyColumn' => 'id', 'labelColumn' => 'name')), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Created Date')), 'expired_date' => array('name' => 'expired_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Expired Date')));
     }
     return self::$_fields;
 }
Ejemplo n.º 2
0
 /**
  * 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, 'required' => true), 'group_name' => array('name' => 'group_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Group Name'), 'description' => 'group name for cache element, useful in cleaning cache elements', 'required' => true, 'maxlength' => 32, 'size' => CRM_Utils_Type::MEDIUM), 'path' => array('name' => 'path', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Path'), 'description' => 'Unique path name for cache element', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Data'), 'description' => 'data associated with this path'), 'component_id' => array('name' => 'component_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'Component that this menu item belongs to', 'FKClassName' => 'CRM_Core_DAO_Component', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_component', 'keyColumn' => 'id', 'labelColumn' => 'name')), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Created Date'), 'description' => 'When was the cache item created'), 'expired_date' => array('name' => 'expired_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Expired Date'), 'description' => 'When should the cache item expire'));
     }
     return self::$_fields;
 }
Ejemplo n.º 3
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'group_name' => array('name' => 'group_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Group Name'), 'required' => true, 'maxlength' => 32, 'size' => CRM_Utils_Type::MEDIUM), 'path' => array('name' => 'path', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Path'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Data')), 'component_id' => array('name' => 'component_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Core_DAO_Component'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Created Date')), 'expired_date' => array('name' => 'expired_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Expired Date')));
     }
     return self::$_fields;
 }