<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
*
* @return array collection of info about this data source
*
- * @access public
*
*/
public function getInfo() {
}
/**
- * Function to set variables up before form is built
+ * Set variables up before form is built
*
- * @access public
*/
public function preProcess(&$form) {}
* form snippet. It should add all fields necesarry to get the data
* uploaded to the temporary table in the DB.
*
- * @param $form
+ * @param CRM_Core_Form $form
*
* @return void (operates directly on form argument)
- * @access public
*/
public function buildQuickForm(&$form) {
$form->add('hidden', 'hidden_dataSource', 'CRM_Import_DataSource_SQL');
/**
* @param $fields
* @param $files
- * @param $form
+ * @param CRM_Core_Form $form
*
* @return array|bool
*/
- static function formRule($fields, $files, $form) {
+ public static function formRule($fields, $files, $form) {
$errors = array();
// poor man's query validation (case-insensitive regex matching on word boundaries)
}
/**
- * Function to process the form
+ * Process the form submission
*
- * @access public
*/
public function postProcess(&$params, &$db, &$form) {
$importJob = new CRM_Contact_Import_ImportJob(
$form->set('importTableName', $importJob->getTableName());
}
}
-