* formatted custom field names.
*
* @var array
- * @access protected
*/
protected $_formattedFieldNames;
* @param mapperFields
*
* @return string
- * @access public
*/
public function defaultFromColumnName($columnName, &$patterns) {
* Set variables up before form is built
*
* @return void
- * @access public
*/
public function preProcess() {
$dataSource = $this->get('dataSource');
* Build the form object
*
* @return void
- * @access public
*/
public function buildQuickForm() {
//to save the current mappings
/**
* Global validation rules for the form
*
- * @param array $fields posted values of the form
+ * @param array $fields
+ * Posted values of the form.
*
* @return array list of errors to be posted back to the form
* @static
- * @access public
*/
public static function formRule($fields) {
$errors = array();
* preview the file and extract some summary statistics
*
* @return void
- * @access public
*/
public function postProcess() {
$params = $this->controller->exportValues('MapField');
);
//set respective mapper params to array.
- foreach (array_keys($mapperParams) as $mapperParam)$$mapperParam = array();
+ foreach (array_keys($mapperParams) as $mapperParam) {
+ $$mapperParam = array();
+ }
for ($i = 0; $i < $this->_columnCount; $i++) {
//set respective mapper value to null
- foreach (array_values($mapperParams) as $mapperParam)$$mapperParam = NULL;
+ foreach (array_values($mapperParams) as $mapperParam) {
+ $$mapperParam = NULL;
+ }
$fldName = CRM_Utils_Array::value(0, $mapperKeys[$i]);
$selOne = CRM_Utils_Array::value(1, $mapperKeys[$i]);
for ($i = 0; $i < $this->_columnCount; $i++) {
$updateMappingFields = new CRM_Core_DAO_MappingField();
- $updateMappingFields->id = CRM_Utils_Array::value($i,$mappingFieldsId);
+ $updateMappingFields->id = CRM_Utils_Array::value($i, $mappingFieldsId);
$updateMappingFields->mapping_id = $params['mappingId'];
$updateMappingFields->column_number = $i;
* @param $fields
*
* @return void
- * @access public
*/
public function formatCustomFieldName(&$fields) {
//CRM-2676, replacing the conflict for same custom field name from different custom group.
return $formattedFieldNames;
}
}
-