<?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() {
/**
* Set variables up before form is built
*
- * @access public
*/
public function preProcess(&$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');
*
* @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)
/**
* Process the form submission
*
- * @access public
*/
public function postProcess(&$params, &$db, &$form) {
$importJob = new CRM_Contact_Import_ImportJob(
$form->set('importTableName', $importJob->getTableName());
}
}
-