<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
$handler = opendir($config->uploadDir);
$errorFiles = array('sqlImport.errors', 'sqlImport.conflicts', 'sqlImport.duplicates', 'sqlImport.mismatch');
+ // check for post max size avoid when called twice
+ $snippet = CRM_Utils_Array::value('snippet', $_GET, 0);
+ if (empty($snippet)) {
+ CRM_Core_Config_Defaults::formatUnitSize(ini_get('post_max_size'), TRUE);
+ }
+
while ($file = readdir($handler)) {
if ($file != '.' && $file != '..' &&
in_array($file, $errorFiles) && !is_writable($config->uploadDir . $file)
);
}
+ /**
+ * This virtual function is used to set the default values of
+ * various form elements
+ *
+ * access public
+ *
+ * @return array reference to the array of default values
+ *
+ */
+ /**
+ * @return array
+ */
function setDefaultValues() {
$config = CRM_Core_Config::singleton();
$defaults = array(
return $defaults;
}
+ /**
+ * @return array
+ * @throws Exception
+ */
private function _getDataSources() {
// Open the data source dir and scan it for class files
$config = CRM_Core_Config::singleton();
* Add a PK and status column to the import table so we can track our progress
* Returns the name of the primary key and status columns
*
+ * @param $db
+ * @param $importTableName
+ *
* @return array
* @access private
*/