public function dba_report_version::compare_version in Database Administration 7
File
- ./
dba.report.inc, line 177
Class
- dba_report_version
- Class for comparing version.
Code
public function compare_version($version, $operation = '==') {
$current = $this
->__toString();
$compare = $version
->__toString();
$comparison = 'return $current' . $operation . '$compare;';
return eval($comparison);
}