public function getContextConfigValue($varName, $defaultValue = null)
    {
        if ($this->type == InternalBaseBlock::INJECTOR_VAR) {
            return $this->context->getVarValue($varName, $defaultValue);
        }
        
        if ($this->type == InternalBaseBlock::INJECTOR_CFG) {
            return $this->context->getCfgValue($varName, $defaultValue);
        }
            
        throw new InvalidConfigException("The type '{$this->type}' is not supported.");
    }
public function getContextConfigValue($varName, $defaultValue = null)
    {
        if ($this->type == InternalBaseBlock::INJECTOR_VAR) {
            return $this->context->getVarValue($varName, $defaultValue);
        }
        
        if ($this->type == InternalBaseBlock::INJECTOR_CFG) {
            return $this->context->getCfgValue($varName, $defaultValue);
        }
            
        throw new InvalidConfigException("The type '{$this->type}' is not supported.");
    }
public function getContextConfigValue ( $ varName , $ defaultValue = null ) { if ( $ this -> type == InternalBaseBlock :: INJECTOR_VAR ) { return $ this -> context -> getVarValue ( $ varName , $ defaultValue ) ; } if ( $ this -> type == InternalBaseBlock :: INJECTOR_CFG ) { return $ this -> context -> getCfgValue ( $ varName , $ defaultValue ) ; } throw new InvalidConfigException ( "The type '{$this->type}' is not supported." ) ; }
Returns the value of the variable which is defined for this injector object based on it given type.

@param string $varName
@param mixed $defaultValue The default value for the variable if not found.
@return mixed
@throws InvalidConfigException
Returns the value of the variable which is defined for this injector object based on it given type .