+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* All DAO classes should inherit from this class.
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
*/
if (!defined('DB_DSN_MODE')) {
while ($dao->fetch()) {
$values[] = $dao->TABLE_NAME;
}
- $dao->free();
return $values;
}
AND TABLE_NAME LIKE 'civicrm_%'
AND TABLE_NAME NOT LIKE 'civicrm_import_job_%'
AND TABLE_NAME NOT LIKE '%_temp%'
+ AND TABLE_NAME NOT LIKE 'civicrm_tmp_%'
");
}
CRM_Core_Error::fatal();
}
- $dao->free();
$show[$tableName] = $dao->Create_Table;
}
CRM_Core_Error::fatal();
}
- $dao->free();
$show[$tableName] = $dao->Create_Table;
}
CRM_Core_Error::fatal();
}
- $dao->free();
$show[$tableName] = $dao->Create_Table;
}
$constraint = "`FK_{$tableName}_{$columnName}`";
$query = "SELECT * FROM $tableName WHERE $columnName != '$columnValue'";
$dao = CRM_Core_DAO::executeQuery($query);
$result = $dao->fetch() ? FALSE : TRUE;
- $dao->free();
return $result;
}
$query = "SELECT * FROM $tableName WHERE $columnName IS NOT NULL";
$dao = CRM_Core_DAO::executeQuery($query);
$result = $dao->fetch() ? FALSE : TRUE;
- $dao->free();
return $result;
}
$dao = CRM_Core_DAO::executeQuery($query, $params);
$result = $dao->fetch() ? TRUE : FALSE;
- $dao->free();
return $result;
}
) {
// we typically do this for insert/update/delete statements OR if explicitly asked to
// free the dao
- $dao->free();
}
return $dao;
}