// number of seconds per year
$numSecond = 31536000;
- $dateFormat = "Ymdhis";
+ $dateFormat = "YmdHis";
$today = time();
// both are defined
private function _insert(&$dao) {
if (self::ADD_TO_DB) {
if (!$dao->insert()) {
- echo "ERROR INSERT: " . mysql_error() . "\n";
+ echo "ERROR INSERT: " . mysqli_error($dao->getConnection()->connection) . "\n";
print_r($dao);
exit(1);
}
private function _update(&$dao) {
if (self::ADD_TO_DB) {
if (!$dao->update()) {
- echo "ERROR UPDATE: " . mysql_error() . "\n";
+ echo "ERROR UPDATE: " . mysqli_error($dao->getConnection()->connection) . "\n";
print_r($dao);
exit(1);
}
}
-/**
- * @param null $str
- *
- * @return bool
- */
-function user_access($str = NULL) {
- return TRUE;
-}
-
-/**
- * @return array
- */
-function module_list() {
- return array();
-}
-
echo ("Starting data generation on " . date("F dS h:i:s A") . "\n");
$gcd = new CRM_GCD();
$gcd->initID();