You are here

function cmfcCalendarV1::getPlugins in Calendar Systems 8.2

Same name and namespace in other branches
  1. 8 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::getPlugins()
  2. 7 calendar/v1/calendarV1.class.inc.php \cmfcCalendarV1::getPlugins()
  3. 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

cmfcCalendarV1

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;
}