public function getLoadedEffects()
{
if (!count($this->_loadedEffects)) {
$class = str_replace('Horde_Image_', '', get_class($this));
$this->_loadedEffects = array();
// First, load the driver-agnostic Effects.
$path = __DIR__ . '/Effect/';
if (is_dir($path)) {
if ($handle = opendir($path)) {
while (($file = readdir($handle)) !== false) {
if (substr($file, -4, 4) == '.php') {
$this->_loadedEffects[] = substr($file, 0, strlen($file) - 4);
}
}
}
}
// Driver specific effects.
$path = $path . $class;
if (is_dir($path)) {
if ($handle = opendir($path)) {
while (($file = readdir($handle)) !== false) {
if (substr($file, -4, 4) == '.php') {
$this->_loadedEffects[] = substr($file, 0, strlen($file) - 4);
}
}
}
}
}
return $this->_loadedEffects;
}