Example #1
0
 /**
  * Return all enabled plugins within a defined scope
  *
  * @todo RM_Plugin_Manager has the very similar method: getPlugins. "In the end, there can be only one." :-)
  * @todo I have added $scope today, this could be configuration/plugins etc. This is just where this should be shown.
  * @return array
  */
 public function fetchAllEnabled()
 {
     $sql = 'enabled=1';
     if (RM_Connector::getInstance()->isSafeMode()) {
         $sql .= ' AND core=1';
     }
     return $this->fetchAll($sql);
 }
Example #2
0
 /**
  * Returns current connector object depending on CMS
  * 
  * @return RM_Connector
  */
 public static function getConnector()
 {
     return RM_Connector::getInstance();
 }
Example #3
0
 public function initMode()
 {
     $configFile = implode(DIRECTORY_SEPARATOR, array($this->_rootPath, 'RM', 'system', 'config', 'core.config.ini'));
     $configSections = parse_ini_file($configFile, true);
     $mode = $configSections['main']['mode'];
     self::$_mode = $mode;
 }