+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2016
*/
abstract class CRM_Activity_Import_Parser extends CRM_Import_Parser {
protected $_fileName;
- /**#@+
- * @var integer
- */
-
/**
* Imported file size.
*/
continue;
}
- /* trim whitespace around the values */
+ // Trim whitespace around the values.
$empty = TRUE;
foreach ($values as $k => $v) {
if ($returnCode & self::DUPLICATE) {
if ($returnCode & self::MULTIPLE_DUPE) {
- /* TODO: multi-dupes should be counted apart from singles
- * on non-skip action */
+ // TODO: multi-dupes should be counted apart from singles
+ // on non-skip action.
}
$this->_duplicateCount++;
$recordNumber = $this->_lineCount;
self::exportCSV($this->_duplicateFileName, $headers, $this->_duplicates);
}
}
- //echo "$this->_totalCount,$this->_invalidRowCount,$this->_conflictCount,$this->_duplicateCount";
return $this->fini();
}
/**
- * Given a list of the importable field keys that the user has selected
- * set the active fields array to this list
+ * Given a list of the importable field keys that the user has selected set the active fields array to this list.
*
* @param array $fieldKeys
- *
- * @return void
*/
public function setActiveFields($fieldKeys) {
$this->_activeFieldCount = count($fieldKeys);
* @param CRM_Core_Session $store
*
* @param int $mode
- *
- * @return void
*/
public function set($store, $mode = self::MODE_SUMMARY) {
$store->set('fileSize', $this->_fileSize);
$store->set('duplicatesFileName', $this->_duplicateFileName);
}
}
- //echo "$this->_totalCount,$this->_invalidRowCount,$this->_conflictCount,$this->_duplicateCount";
}
/**
* @param string $fileName
* @param array $header
* @param array $data
- *
- * @return void
*/
public static function exportCSV($fileName, $header, $data) {
$output = array();