From 21bfdbc8332061b7a0793f4e9b3d5c29fc242a51 Mon Sep 17 00:00:00 2001 From: deepak-srivastava Date: Fri, 3 Oct 2014 15:49:35 +0100 Subject: [PATCH] remove recurring dao file --- CRM/Core/DAO/RecurringEntity.php | 266 ------------------------------- 1 file changed, 266 deletions(-) delete mode 100644 CRM/Core/DAO/RecurringEntity.php diff --git a/CRM/Core/DAO/RecurringEntity.php b/CRM/Core/DAO/RecurringEntity.php deleted file mode 100644 index 37fc371eaf..0000000000 --- a/CRM/Core/DAO/RecurringEntity.php +++ /dev/null @@ -1,266 +0,0 @@ -__table = 'civicrm_recurring_entity'; - parent::__construct(); - } - /** - * 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, - 'title' => ts('ID') , - 'required' => true, - ) , - 'parent_id' => array( - 'name' => 'parent_id', - 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('Parent ID') , - 'required' => true, - ) , - 'entity_id' => array( - 'name' => 'entity_id', - 'type' => CRM_Utils_Type::T_INT, - 'title' => ts('Entity ID') , - ) , - 'entity_table' => array( - 'name' => 'entity_table', - 'type' => CRM_Utils_Type::T_STRING, - 'title' => ts('Entity Table') , - 'required' => true, - 'maxlength' => 64, - 'size' => CRM_Utils_Type::BIG, - ) , - 'mode' => array( - 'name' => 'mode', - 'type' => CRM_Utils_Type::T_BOOLEAN, - 'title' => ts('Cascade Type') , - 'required' => true, - 'default' => '1', - ) , - ); - } - return self::$_fields; - } - /** - * Returns an array containing, for each field, the arary key used for that - * field in self::$_fields. - * - * @access public - * @return array - */ - static function &fieldKeys() - { - if (!(self::$_fieldKeys)) { - self::$_fieldKeys = array( - 'id' => 'id', - 'parent_id' => 'parent_id', - 'entity_id' => 'entity_id', - 'entity_table' => 'entity_table', - 'mode' => 'mode', - ); - } - return self::$_fieldKeys; - } - /** - * returns the names of this table - * - * @access public - * @static - * @return string - */ - static function getTableName() - { - return self::$_tableName; - } - /** - * returns if this table needs to be logged - * - * @access public - * @return boolean - */ - function getLog() - { - return self::$_log; - } - /** - * returns the list of fields that can be imported - * - * @access public - * return array - * @static - */ - 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['recurring_entity'] = & $fields[$name]; - } else { - self::$_import[$name] = & $fields[$name]; - } - } - } - } - return self::$_import; - } - /** - * returns the list of fields that can be exported - * - * @access public - * return array - * @static - */ - 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['recurring_entity'] = & $fields[$name]; - } else { - self::$_export[$name] = & $fields[$name]; - } - } - } - } - return self::$_export; - } -} -- 2.25.1