public function getUpgrades($context = null) {
        if (! $context) {
                $context = $this->getContext();
            }

        if (isset($this->_upgradeStack[$context])) {
            return $this->_upgradeStack[$context];
        }
        return array();
    }
public function getUpgrades($context = null) {
        if (! $context) {
                $context = $this->getContext();
            }

        if (isset($this->_upgradeStack[$context])) {
            return $this->_upgradeStack[$context];
        }
        return array();
    }
public function getUpgrades ( $ context = null ) { if ( ! $ context ) { $ context = $ this -> getContext ( ) ; } if ( isset ( $ this -> _upgradeStack [ $ context ] ) ) { return $ this -> _upgradeStack [ $ context ] ; } return array ( ) ; }
Retrieve the upgrades for a certain context, will return an empty array when nothing present.

@param string $context
@return array
Retrieve the upgrades for a certain context will return an empty array when nothing present .