The import loader is used to gather all the GemsTracker specific knowledge for importing model data.
As these classes may need setting of values this subclass implements the checkRegistryRequestsAnswers() easy access to resources.
package | Gems |
---|---|
subpackage | Import |
copyright | Copyright (c) 2013 Erasmus MC |
license | New BSD License |
since | Class available since version 1.6.2 |
inherited_from | \Gems_Loader_TargetLoaderAbstract |
__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)
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.getAnswerImporters(\Gems_Tracker_Survey $survey, string $filename = null
) : array
\Gems_Tracker_Survey
string
Optional, name of file to import
array
name => translatorgetDefaultTranslator(string $controller, string $filename = null
) : string
string
Name of controller (or other id)
string
Optional, name of file to import
string
getFailureDirectory(string $controller = null
) : string
string
Name of controller (or other id)
string
getFileImportMask() : string
string
getFileImportRoot() : string
string
getFileImporter(string $filename) : \Gems_Import_Importer
string
Name of file to import
\Gems_Import_Importer
or nullgetFilenameController(string $filename) : string
string
Name of file to import
string
or false if none found.getImporter(string $controller, \MUtil_Model_ModelAbstract $targetModel = null
) : \Gems_Import_Importer
string
Name of controller (or other id)
\MUtil_Model_ModelAbstract
\Gems_Import_Importer
getLongtermFileName(string $controller) : string
string
Name of controller (or other id)
string
getOrganizationCode() : string
string
getRegistryRequests() : array
Returns those object variables defined by the subclass but not at the level of this definition.
Can be overruled.
array
of string namesgetSuccessDirectory(string $controller = null
) : string
string
Name of controller (or other id)
string
getTempDirectory() : string
string
getTranslators(string $controller, string $filename = null
) : array
string
Name of controller (or other id)
string
Optional, name of file to import
array
of \MUtil_Model_ModelTranslatorInterface objectssetOrganizationCode(string $code) : \Gems_Import_ImportLoader
string
\Gems_Import_ImportLoader
(continuation pattern)_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
getControllerTargetModel(string $controller) : \MUtil_Model_ModelAbstract
string
Name of controller (or other id)
\MUtil_Model_ModelAbstract
or null when not foundgetTranslateAdapter() : \Zend_Translate_Adapter
\Zend_Translate_Adapter
$project : \Gems_Project_ProjectSettings
$_dirs : array
The standard value is
But an alternative could be:
$_loader : \MUtil_Loader_PluginLoader
$_orgCode : string
$cascade : string
'Import'
$cascade : string
null
$currentOrganization : \Gems_User_Organization
$currentUser : \Gems_User_User
$loader : \Gems_Loader
$translate : \Zend_Translate