first(array<mixed,mixed> $array, mixed $valueIfEmpty = NULL
) : mixed
package | salt |
---|
array<mixed,mixed>
the array
mixed
(Optional, NULL) The value to return if array is empty
mixed
the first element of array or $valueIfEmpty if array emptylast(array<mixed,mixed> $array, mixed $valueIfEmpty = NULL
) : mixed
package | salt |
---|
array<mixed,mixed>
the array
mixed
(Optional, NULL) The value to return if array is empty
mixed
last element of array or $valueIfEmpty if array emptyRESERVED_PREFIX = '_salt'
package | salt |
---|
DEFAULT_DATE_DISPLAY_FORMAT = 'd/m/Y'
package | salt\conf |
---|
I18N_DEFAULT_LOCALE = 'en'
We cannot allow user to overwrite it. So the only way to change it is here, and it changed it for all applications linked to this SALT installation.
If we allow overwrite in each application, and if two applications use different value, classes generated for SALT framework will became unconsistent :
the I18N_DEFAULT_LOCALE set the parent class of all generated classes, so we cannot have a class A with parent B for an application, and class B with parent A for another.
package | salt\conf |
---|
I18N_MODE = \salt\I18n::MODE_REGENERATE_ON_THE_FLY
package | salt\conf |
---|