MonitoringBackend: Implement the getProgramVersion method

refs #9672
This commit is contained in:
Alexander Fuhr 2015-08-04 13:28:32 +02:00
parent 1c5bf36538
commit dfbcc066a7
1 changed files with 10 additions and 0 deletions

View File

@ -331,4 +331,14 @@ class MonitoringBackend implements Selectable, Queryable, ConnectionInterface
array_push($parts, 'Query', ucfirst(strtolower($query)) . 'Query');
return implode('\\', $parts);
}
/**
* Fetch and return the program version of the current instance
*
* @return string
*/
public function getProgramVersion()
{
return $this->select()->from('programstatus', array('program_version'))->fetchOne();
}
}