You are here

public static function Writer::isRegistered in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Writer/Writer.php \Zend\Feed\Writer\Writer::isRegistered()

Is a given named Extension registered?

Parameters

string $extensionName:

Return value

bool

1 call to Writer::isRegistered()
Writer::registerExtension in vendor/zendframework/zend-feed/src/Writer/Writer.php
Register an Extension by name

File

vendor/zendframework/zend-feed/src/Writer/Writer.php, line 136

Class

Writer

Namespace

Zend\Feed\Writer

Code

public static function isRegistered($extensionName) {
  $feedName = $extensionName . '\\Feed';
  $entryName = $extensionName . '\\Entry';
  $feedRendererName = $extensionName . '\\Renderer\\Feed';
  $entryRendererName = $extensionName . '\\Renderer\\Entry';
  if (in_array($feedName, static::$extensions['feed']) || in_array($entryName, static::$extensions['entry']) || in_array($feedRendererName, static::$extensions['feedRenderer']) || in_array($entryRendererName, static::$extensions['entryRenderer'])) {
    return true;
  }
  return false;
}