function cmfcCalendarV1::getPlugins in Calendar Systems 7
Same name and namespace in other branches
- 8 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::getPlugins()
- 8.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::getPlugins()
- 7.2 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::getPlugins()
1 call to cmfcCalendarV1::getPlugins()
- cmfcCalendarV1::getAllStrings in calendar/
v1/ calendarV1.class.inc.php - * Get list of translatable strings
File
- calendar/
v1/ calendarV1.class.inc.php, line 42
Class
Code
function getPlugins() {
$dir = dirname(__FILE__) . '/calendarSystems';
$dh = opendir($dir);
$plugins = array();
while (false !== ($filename = readdir($dh))) {
if (strpos($filename, '.class.inc.php') !== false) {
$plugin = str_replace('.class.inc.php', '', $filename);
$plugins[$plugin] = array(
'name' => $plugin,
);
}
}
return $plugins;
}