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)
\type
A container acting as source fro \MUtil_Registry_Source
array
The directories where to look for requested classes
__construct(mixed $container, array $dirs)
mixed
A container acting as source for \MUtil_Registry_Source
array
The directories where to look for requested classes
__get($name)
addExportClasses(array $stack)
array
classname / description array of sourceclasses
addPrefixPath(string $prefix, $path, boolean $prepend = true
) : \Gems_Loader_LoaderAbstract
string
boolean
Put 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
string
Name of resource to set
mixed
The resource.
boolean
True if $resource was OKcheckRegistryRequestsAnswers() : boolean
boolean
False if required values are missing.getDefaults()
getExport($type) : \Gems_Export_ExportInterface
\Gems_Export_ExportInterface
getExportClasses() : array
array
Of classname => descriptiongetExportModelSources() : array
array
Of classnamesgetRegistryRequests() : array
Returns those object variables defined by the subclass but not at the level of this definition.
Can be overruled.
array
of string namessetDefaults(array $defaults)
array
_cascadedDirs(array $dirs, string $cascade, boolean $fullClassnameFallback = true
) : array
array
prefix => path
string
The sub directories to cascade to
boolean
Allows full class name specification instead of just plugin name part
array
prefix => path_getClass(string $name, string $className= null
, array $arguments= array()
) : mixed
string
The $name of the variable to store this object in.
string
Class name or null if the same as $name, prepending $this->_dirs.
array
Class initialization arguments.
mixed
Instance 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