Exemplo n.º 1
0
 /**
  * Returns component names
  *
  * @return array
  */
 protected function _getComponentNames()
 {
     if (self::$_aCollectedComponentNames === null) {
         self::$_aCollectedComponentNames = array_merge($this->_aComponentNames, $this->_aUserComponentNames);
         // #1721: custom component handling. At the moment it is not possible to override this variable in oxubase,
         // so we added this array to config.inc.php file
         if ($aUserCmps = $this->getConfig()->getConfigParam('aUserComponentNames')) {
             self::$_aCollectedComponentNames = array_merge(self::$_aCollectedComponentNames, $aUserCmps);
         }
         if (oxRegistry::getConfig()->getRequestParameter('_force_no_basket_cmp')) {
             unset(self::$_aCollectedComponentNames['oxcmp_basket']);
         }
     }
     // resetting array pointer
     reset(self::$_aCollectedComponentNames);
     return self::$_aCollectedComponentNames;
 }