Contains the staffModel
Handles saving of the password to the right userclass
| package | Gems |
|---|---|
| subpackage | Model |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.5 |
| inherited_from | \Gems_Model_JoinModel |
_(string $text, string|\Zend_Locale $locale = null) : string
Translates the given string returns the translation
stringTranslation string
string\Zend_Locale(optional) Locale/Language to use, identical with locale identifier, @see \Zend_Locale for more information
string__construct(string $name = 'staff')
| inherited_from | \Gems_Model_JoinModel::__construct() |
|---|
stringAn alternative name for the model
__construct(string $name, string $startTable, string $fieldPrefix= null, mixed $saveable= null)
stringA name for the model
stringThe base table for the model
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
addLeftTable(mixed $table, array $joinFields, string $fieldPrefix= null, mixed $saveable= null) : \Gems_Model_JoinModel
mixedThe name of the table to join or a table object or an array(corr_name => tablename) or array(int => tablename, corr_name)
arrayArray of source->dest primary keys for this join
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModeladdRightTable(mixed $table, array $joinFields, string $fieldPrefix= null, mixed $saveable= null) : \Gems_Model_JoinModel
mixedThe name of the table to join or a table object or an array(corr_name => tablename) or array(int => tablename, corr_name)
arrayArray of source->dest primary keys for this join
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModeladdTable(mixed $table, array $joinFields, string $fieldPrefix= null, mixed $saveable= null) : \Gems_Model_JoinModel
mixedThe name of the table to join or a table object or an array(corr_name => tablename) or array(int => tablename, corr_name)
arrayArray of source->dest primary keys for this join
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModelafterRegistry() : void
This function is no needed if the classes are setup correctly
| inherited_from | \Gems_Model_JoinModel::afterRegistry() |
|---|
afterRegistry() : void
This function is no needed if the classes are setup correctly
applyOwnAccountEdit() : \Gems_Model_StaffModel
\Gems_Model_StaffModelapplySettings(boolean $detailed, string $action, integer $defaultOrgId) : \Gems_Model_StaffModel
booleanTrue when the current action is not in $summarizedActions.
stringThe current action.
integerThe default organization id or null if current organization
\Gems_Model_StaffModelplural(string $singular, string $plural, integer $number, string|\Zend_Locale $locale = null) : string
Translates the given string using plural notations Returns the translated string
| see |
|---|
stringSingular translation string
stringPlural translation string
integerNumber for detecting the correct plural
string\Zend_Locale(Optional) Locale/Language to use, identical with locale identifier, @see \Zend_Locale for more information
stringsave(array $newValues, array $filter= null, array $saveTables= null) : array
Makes sure the password is saved too using the userclass
arrayThe values to store for a single model item.
arrayIf the filter contains old key values these are used to decide on update versus insert.
arrayOptional array containing the table names to save, otherwise the tables set to save at model level will be saved.
arrayThe values as they are after saving (they may change).setTableSaveable(string $table_name, string $fieldPrefix= null, mixed $saveable= null) : \Gems_Model_JoinModel
stringDoes not test for existence
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModel_checkSaveable(mixed $saveable, string $fieldPrefix) : mixed
mixedWill changes to this table be saved, true or a combination of SAVE_MODE constants
stringPrefix to use for change fields (date/userid), if $saveable empty sets it to true
mixedThe saveable setting to useinitTranslateable()
This function is not needed if the variables have been defined correctly in the source for this object and theose variables have been applied.
return @void
$defaultStaffDefinition : string
\Gems_User_UserLoader::USER_STAFF$loader : \Gems_Loader
$project : \Gems_Project_ProjectSettings
$translate : \Zend_Translate
$translateAdapter : \Zend_Translate_Adapter
$util : \Gems_Util