TargetLoaderAbstract is used for classes that chain from \Gems_Loader but are also a target themselves.
As these classes may need setting of values this subclass implements the checkRegistryRequestsAnswers() easy access to resources.
| package | Gems |
|---|---|
| subpackage | Export |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.5 |
| inherited_from | \Gems_Loader_TargetLoaderAbstract |
__construct(\type $container, array $dirs)
\typeA container acting as source fro \MUtil_Registry_Source
arrayThe directories where to look for requested classes
__construct(mixed $container, array $dirs)
mixedA container acting as source for \MUtil_Registry_Source
arrayThe directories where to look for requested classes
__get($name)
addExportClasses(array $stack)
arrayclassname / description array of sourceclasses
addPrefixPath(string $prefix, $path, boolean $prepend = true) : \Gems_Loader_LoaderAbstract
string
booleanPut path at the beginning of the stack (has no effect when prefix / dir already set)
\Gems_Loader_LoaderAbstract(continuation pattern)afterRegistry() : void
answerRegistryRequest(string $name, mixed $resource) : boolean
stringName of resource to set
mixedThe resource.
booleanTrue if $resource was OKcheckRegistryRequestsAnswers() : boolean
booleanFalse if required values are missing.getDefaults()
getExport($type) : \Gems_Export_ExportInterface
\Gems_Export_ExportInterfacegetExportClasses() : array
arrayOf classname => descriptiongetExportModelSources() : array
arrayOf classnamesgetRegistryRequests() : array
Returns those object variables defined by the subclass but not at the level of this definition.
Can be overruled.
arrayof string namessetDefaults(array $defaults)
array
_cascadedDirs(array $dirs, string $cascade, boolean $fullClassnameFallback = true) : array
arrayprefix => path
stringThe sub directories to cascade to
booleanAllows full class name specification instead of just plugin name part
arrayprefix => path_getClass(string $name, string $className= null, array $arguments= array()) : mixed
stringThe $name of the variable to store this object in.
stringClass name or null if the same as $name, prepending $this->_dirs.
arrayClass initialization arguments.
mixedInstance of $className_loadClass(string $name, boolean $create= false, array $arguments= array()) : mixed
filterRequestNames(string $name) : boolean
Can be overriden.
string
boolean$controller : \Gems_Controller_Action
null$_defaults : array
array('exportmodelsource' => 'AnswerExportModelSource', 'type' => 'ExcelExport')$_dirs : array
The standard value is
But an alternative could be:
$_exportClasses : array
array('ExcelExport' => 'Excel (xlsx)', 'ExcelHtmlExport' => 'Excel HTML (xls)', 'SpssExport' => 'SPSS', 'CsvExport' => 'CSV', 'StataExport' => 'Stata (xml)')$_exportModelSources : array
array('AnswerExportModelSource' => 'Answers')$_loader : \MUtil_Loader_PluginLoader
$cascade : string
'Export'$cascade : string
null