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)
mixedA container acting as source for \MUtil_Registry_Source
arrayThe directories where to look for requested classes
__get($name)
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.getAnswerImporters(\Gems_Tracker_Survey $survey, string $filename = null) : array
\Gems_Tracker_Survey
stringOptional, name of file to import
arrayname => translatorgetDefaultTranslator(string $controller, string $filename = null) : string
stringName of controller (or other id)
stringOptional, name of file to import
stringgetFailureDirectory(string $controller = null) : string
stringName of controller (or other id)
stringgetFileImportMask() : string
stringgetFileImportRoot() : string
stringgetFileImporter(string $filename) : \Gems_Import_Importer
stringName of file to import
\Gems_Import_Importeror nullgetFilenameController(string $filename) : string
stringName of file to import
stringor false if none found.getImporter(string $controller, \MUtil_Model_ModelAbstract $targetModel = null) : \Gems_Import_Importer
stringName of controller (or other id)
\MUtil_Model_ModelAbstract
\Gems_Import_ImportergetLongtermFileName(string $controller) : string
stringName of controller (or other id)
stringgetOrganizationCode() : string
stringgetRegistryRequests() : array
Returns those object variables defined by the subclass but not at the level of this definition.
Can be overruled.
arrayof string namesgetSuccessDirectory(string $controller = null) : string
stringName of controller (or other id)
stringgetTempDirectory() : string
stringgetTranslators(string $controller, string $filename = null) : array
stringName of controller (or other id)
stringOptional, name of file to import
arrayof \MUtil_Model_ModelTranslatorInterface objectssetOrganizationCode(string $code) : \Gems_Import_ImportLoader
string
\Gems_Import_ImportLoader(continuation pattern)_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
booleangetControllerTargetModel(string $controller) : \MUtil_Model_ModelAbstract
stringName of controller (or other id)
\MUtil_Model_ModelAbstractor 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