/** * 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, 'title' => ts('Persistent ID'), 'description' => 'Persistent Record Id', 'required' => true), 'context' => array('name' => 'context', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Context'), 'description' => 'Context for which name data pair is to be stored', 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'description' => 'Name of Context', 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Data'), 'description' => 'data associated with name'), 'is_config' => array('name' => 'is_config', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Configuration?'), 'description' => 'Config Settings', 'required' => true)); } return self::$_fields; }
/** * 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), 'context' => array('name' => 'context', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Context'), 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Data')), 'is_config' => array('name' => 'is_config', 'type' => CRM_Utils_Type::T_BOOLEAN, 'required' => true)); } return self::$_fields; }