public hasExtension ( string $extension ) : boolean | ||
$extension | string | The extension to check. |
return | boolean | Whether the extension is supported. |
public function hasExtension($extension)
{
$this->_checkConnected();
$extension = trim(\Horde_String::upper($extension));
if (is_array($this->_capability['extensions'])) {
foreach ($this->_capability['extensions'] as $ext) {
if ($ext == $extension) {
return true;
}
}
}
return false;
}