示例#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);
 }
示例#2
0
 /**
  * Returns current connector object depending on CMS
  * 
  * @return RM_Connector
  */
 public static function getConnector()
 {
     return RM_Connector::getInstance();
 }