TorneLIB\Module\Config\WrapperDriver
Class WrapperDriver
Synopsis
class WrapperDriver
{
- // members
- private static array $wrappers = ;
- private static array $internalWrapperList = ;
- private static array $externalWrapperList = ;
- private static $instanceClass $instanceClass;
- private static bool $useRegisteredWrappersFirst = false;
- // methods
- private static void registerClassInterface()
- private static void registerCheckBadClass()
- private static bool registerCheckImplements()
- private static mixed getWrapper()
- public static mixed getWrapperAllowed()
- public static mixed initializeWrappers()
- public static string getInstanceClass()
- public static string register()
- public static bool getRegisteredWrappersFirst()
- public static array getWrappers()
- public static array getExternalWrappers()
Tasks
Line | Task |
---|---|
163 | Remove this entirely in future releases. |
Members
private
- $externalWrapperList
—
array
List of self developed wrappers to use if nothing else works. - $instanceClass — TorneLIB\Module\Config\$instanceClass
- $internalWrapperList
—
array
What we support internally. - $useRegisteredWrappersFirst
—
TorneLIB\Module\Config\bool
If true, make NetWrapper try to use those wrappers first. - $wrappers
—
array
Internal wrappers loaded.
Methods
private
- getWrapper() — Find out if internal wrapper is available and return it.
- registerCheckBadClass() — Check if class is not properly registered and throw exception.
- registerCheckImplements() — Checks if registering class implements WrapperInterface.
- registerClassInterface() — Register external wrapper class as useble if it implements the wrapper interface.
public
- getExternalWrappers() — Get list of externally registered wrappers.
- getInstanceClass() — Returns the instance classname if set and ready.
- getRegisteredWrappersFirst() — If this is true Netwrapper will try the registered drivers before the internal.
- getWrapperAllowed() — Returns proper wrapper for internal wrapper requests, depending on external available wrappers.
- getWrappers() — Get list of available wrappers, both internal and external.
- initializeWrappers() — Initialize available wrappers.
- register() — Register a new wrapperclass for netcurl (NetWrapper).