Commit 6abb6e5c authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #24 in ZP/z-push from...

Merge pull request #24 in ZP/z-push from feature/ZP-661-backendcombined-return-min-as-version to develop

* commit '37b2caa8':
  ZP-661 Return AS supported version. Released under the Affero GNU General Public License (AGPL) version 3.
parents 042bceb5 37b2caa8
......@@ -447,5 +447,23 @@ class BackendCombined extends Backend {
return false;
return substr($folderid,0,$pos);
}
/**
* Indicates which AS version is supported by the backend.
* Return the lowest version supported by the backends used.
*
* @access public
* @return string AS version constant
*/
public function GetSupportedASVersion() {
$version = ZPush::ASV_14;
foreach ($this->backends as $i => $b) {
$subversion = $this->backends[$i]->GetSupportedASVersion();
if ($subversion < $version) {
$version = $subversion;
}
}
return $version;
}
}
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment