Extension of MUtil model with auto update changed and create fields.
package | Gems |
---|---|
subpackage | Model |
copyright | Copyright (c) 2013 Erasmus MC |
license | New BSD License |
since | Class available since version 1.6.2 |
inherited_from | \Gems_Model_JoinModel |
_(string $text, string|\Zend_Locale $locale = null
) : string
Translates the given string returns the translation
string
Translation string
string
\Zend_Locale
(optional) Locale/Language to use, identical with locale identifier, @see \Zend_Locale for more information
string
__construct()
inherited_from | \Gems_Model_JoinModel::__construct() |
---|
__construct(string $name, string $startTable, string $fieldPrefix= null
, mixed $saveable= null
)
string
A name for the model
string
The base table for the model
string
Prefix to use for change fields (date/userid), if $saveable empty sets it to true
mixed
Will 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
mixed
The name of the table to join or a table object or an array(corr_name => tablename) or array(int => tablename, corr_name)
array
Array of source->dest primary keys for this join
string
Prefix to use for change fields (date/userid), if $saveable empty sets it to true
mixed
Will changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModel
addRightTable(mixed $table, array $joinFields, string $fieldPrefix= null
, mixed $saveable= null
) : \Gems_Model_JoinModel
mixed
The name of the table to join or a table object or an array(corr_name => tablename) or array(int => tablename, corr_name)
array
Array of source->dest primary keys for this join
string
Prefix to use for change fields (date/userid), if $saveable empty sets it to true
mixed
Will changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModel
addTable(mixed $table, array $joinFields, string $fieldPrefix= null
, mixed $saveable= null
) : \Gems_Model_JoinModel
mixed
The name of the table to join or a table object or an array(corr_name => tablename) or array(int => tablename, corr_name)
array
Array of source->dest primary keys for this join
string
Prefix to use for change fields (date/userid), if $saveable empty sets it to true
mixed
Will changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModel
afterRegistry() : 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
applyBrowseSettings() : \Gems_Model_AppointmentModel
\Gems_Model_AppointmentModel
applyDetailSettings(mixed $locale= null
, boolean $setMulti= true
) : \Gems_Model_AppointmentModel
mixed
The locale for the settings
boolean
When false organization dependent multi options are nor filled.
\Gems_Model_AppointmentModel
applyEditSettings(integer $orgId, mixed $locale = null
) : \Gems_Model_AppointmentModel
integer
The id of the current organization
mixed
The locale for the settings
\Gems_Model_AppointmentModel
getChangedTokenCount() : integer
integer
isAutoTrackUpdate() : boolean
boolean
plural(string $singular, string $plural, integer $number, string|\Zend_Locale $locale = null
) : string
Translates the given string using plural notations Returns the translated string
see |
---|
string
Singular translation string
string
Plural translation string
integer
Number for detecting the correct plural
string
\Zend_Locale
(Optional) Locale/Language to use, identical with locale identifier, @see \Zend_Locale for more information
string
save(array $newValues, array $filter = null
) : array
array
The values to store for a single model item.
array
If the filter contains old key values these are used to decide on update versus insert.
array
The values as they are after saving (they may change).setAutoTrackUpdate(boolean $value = true
) : \Gems_Model_AppointmentModel
boolean
\Gems_Model_AppointmentModel
(continuation pattern)setTableSaveable(string $table_name, string $fieldPrefix= null
, mixed $saveable= null
) : \Gems_Model_JoinModel
string
Does not test for existence
string
Prefix to use for change fields (date/userid), if $saveable empty sets it to true
mixed
Will changes to this table be saved, true or a combination of SAVE_MODE constants
\Gems_Model_JoinModel
_addJoinTables()
_checkSaveable(mixed $saveable, string $fieldPrefix) : mixed
mixed
Will changes to this table be saved, true or a combination of SAVE_MODE constants
string
Prefix to use for change fields (date/userid), if $saveable empty sets it to true
mixed
The 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
$_changedTokenCount : integer
0
$autoTrackUpdate : boolean
true
$db : \Zend_Db_Adapter_Abstract
$loader : \Gems_Loader
$translate : \Zend_Translate
$translateAdapter : \Zend_Translate_Adapter
$util : \Gems_Util