src/wcmf/lib/presentation/control/ValueListProvider.php
protected static function getListStrategy($listType) {
    // get list strategies
    if (self::$listStrategies == null) {
      self::$listStrategies = ObjectFactory::getInstance('listStrategies');
    }

    $strategy = null;

    // search strategy
    if (isset(self::$listStrategies[$listType])) {
      $strategy = self::$listStrategies[$listType];
    }
    else {
      throw new ConfigurationException('No ListStrategy implementation registered for '.$listType);
    }
    return $strategy;
  }
protected static function getListStrategy($listType) {
    // get list strategies
    if (self::$listStrategies == null) {
      self::$listStrategies = ObjectFactory::getInstance('listStrategies');
    }

    $strategy = null;

    // search strategy
    if (isset(self::$listStrategies[$listType])) {
      $strategy = self::$listStrategies[$listType];
    }
    else {
      throw new ConfigurationException('No ListStrategy implementation registered for '.$listType);
    }
    return $strategy;
  }
protected static function getListStrategy ( $ listType ) { // get list strategies if ( self :: $ listStrategies == null ) { self :: $ listStrategies = ObjectFactory :: getInstance ( 'listStrategies' ) ; } $ strategy = null ; // search strategy if ( isset ( self :: $ listStrategies [ $ listType ] ) ) { $ strategy = self :: $ listStrategies [ $ listType ] ; } else { throw new ConfigurationException ( 'No ListStrategy implementation registered for ' . $ listType ) ; } return $ strategy ; }
Get the ListStrategy instance for a given list type
@param $listType The list type
@return ListStrategy instance
@throws ConfigurationException
Get the ListStrategy instance for a given list type