*/
abstract public function getInfo();
- /**
- * Set variables up before form is built.
- *
- * @param CRM_Core_Form $form
- */
- abstract public function preProcess(&$form);
-
/**
* This is function is called by the form object to get the DataSource's form snippet.
*
*/
abstract public function buildQuickForm(&$form);
- /**
- * Process the form submission.
- *
- * @param array $params
- * @param string $db
- * @param CRM_Core_Form $form
- */
- abstract public function postProcess(&$params, &$db, &$form);
-
/**
* Determine if the current user has access to this data source.
*
return ['title' => ts('Comma-Separated Values (CSV)')];
}
- /**
- * Set variables up before form is built.
- *
- * @param CRM_Core_Form $form
- */
- public function preProcess(&$form) {
- }
-
/**
* This is function is called by the form object to get the DataSource's form snippet.
*
public function buildQuickForm(&$form) {
$form->add('hidden', 'hidden_dataSource', 'CRM_Import_DataSource_CSV');
- $config = CRM_Core_Config::singleton();
-
- $uploadFileSize = CRM_Utils_Number::formatUnitSize($config->maxFileSize . 'm', TRUE);
+ $uploadFileSize = CRM_Utils_Number::formatUnitSize(Civi::settings()->get('maxFileSize') . 'm', TRUE);
//Fetch uploadFileSize from php_ini when $config->maxFileSize is set to "no limit".
if (empty($uploadFileSize)) {
$uploadFileSize = CRM_Utils_Number::formatUnitSize(ini_get('upload_max_filesize'), TRUE);
];
}
- /**
- * Set variables up before form is built.
- *
- * @param CRM_Core_Form $form
- */
- public function preProcess(&$form) {
- }
-
/**
* This is function is called by the form object to get the DataSource's
* form snippet. It should add all fields necesarry to get the data