org.silex.core.Constants |
This class is used to store all silex constants default values which may be overriden by getDynData function or by values passed to FLash in index.php with SetVariable. So, to change these default data you can use : FlashVars (javascript or html), conf/silex.ini, the url GET method (silex.swf?var=value&). Use _global.getSilex().config to access these constants from SILEX commands, accessors or from ActionScript (in the components or layouts or tools). In the repository : /trunk/core/Constants.as
1
Alexandre Hoyau
| org. | This class is used to store all silex constants default values which may be overriden by getDynData function or by values passed to FLash in index.php with SetVariable. |
| hard coded constants | |
| LOADER_STAGE_HALF_SIZE_X | Loader stage width. |
| LOADER_STAGE_HALF_SIZE_Y | Loader stage height. |
| scale mode names | |
| SCALE_MODE_PIXEL | scale mode name, case insensitive |
| SCALE_MODE_SCROLL | scale mode name, case insensitive |
| SCALE_MODE_NO_SCALE | scale mode name, case insensitive |
| SCALE_MODE_SHOW_ALL | scale mode name, case insensitive |
| anim names | |
| ANIM_NAME_PRELOAD | Preload animation name in the layout files. |
| ANIM_NAME_SHOW | Show animation name in the layout files. |
| ANIM_NAME_CLOSE | Close animation name in the layout files. |
| ANIM_NAME_TRANSITION | Transition animation name in the layout files. |
| ANIM_NAME_TRANSITION_CLOSE | Transition close animation name in the layout files. |
| media properties types in the properties tool box. | Constants used to select editors in properties class. |
| PROPERTIES_TYPE_BOOLEAN | |
| PROPERTIES_TYPE_NUMBER | |
| PROPERTIES_TYPE_TEXT | |
| PROPERTIES_TYPE_RICHTEXT | |
| PROPERTIES_TYPE_COLOR | |
| PROPERTIES_TYPE_COMMAND | |
| PROPERTIES_TYPE_URL | |
| PROPERTIES_TYPE_ARRAY | |
| PROPERTIES_TYPE_ARRAY_ARRAY | |
| event names | |
| UI_PLAYERS_EVENT_PRESS | |
| UI_PLAYERS_EVENT_RELEASE | |
| UI_PLAYERS_EVENT_ROLLOVER | |
| UI_PLAYERS_EVENT_ROLLOUT | |
| UI_PLAYERS_EVENT_MOUSEMOVE | |
| UI_PLAYERS_EVENT_ONLOAD | |
| UI_PLAYERS_EVENT_LOAD_START | |
| UI_PLAYERS_EVENT_LOAD_ERROR | |
| UI_PLAYERS_EVENT_LOAD_PROGRESS | |
| UI_PLAYERS_EVENT_LOAD_COMPLETE | |
| UI_PLAYERS_EVENT_LOAD_INIT | |
| UI_PLAYERS_EVENT_UNLOAD | |
| UI_PLAYERS_EVENT_DEEPLINK | |
| UI_PLAYERS_EVENT_XMLLOADED | |
| UI_PLAYERS_EVENT_CONTENT_SHOW | |
| UI_PLAYERS_EVENT_CONTENT_HIDE | |
| UI_PLAYERS_EVENT_CHILD_SHOW | |
| UI_PLAYERS_EVENT_CHILD_HIDE | |
| UI_PLAYERS_EVENT_CONTENT_HIDE_START | |
| UI_PLAYERS_EVENT_CHANGED | |
| UI_PLAYERS_EVENT_KILLFOCUS | |
| UI_PLAYERS_EVENT_SETFOCUS | |
| UI_PLAYERS_EVENT_SCROLLER | |
| UI_PLAYERS_EVENT_STATUS | |
| UI_PLAYERS_EVENT_METADATA | |
| UI_PLAYERS_EVENT_BUFFER_EMPTY | |
| UI_PLAYERS_EVENT_BUFFER_FULL | |
| UI_PLAYERS_EVENT_NOSTREAM | |
| UI_PLAYERS_EVENT_PLAY | |
| UI_PLAYERS_EVENT_PAUSE | |
| UI_PLAYERS_EVENT_STOP | |
| UI_PLAYERS_EVENT_START | |
| UI_PLAYERS_EVENT_END | |
| UI_PLAYERS_EVENT_SOUND_COMPLETE | |
| UI_PLAYERS_EVENT_SOUND_PLAY | |
| UI_PLAYERS_EVENT_SOUND_PAUSE | |
| UI_PLAYERS_EVENT_SOUND_STOP | |
| UI_PLAYERS_EVENT_SOUND_ID3 | |
| UI_PLAYERS_EVENT_SOUND_LOADED | |
| setter/ | |
| _mouse | True if mouse pointer is visible and false otherwise. |
| mouse | |
| mouse | |
| globalContext | When you change this value, the website switches to another context, e.g. |
| AVAILABLE_CONTEXT_LIST | The available context list. |
| admin language constants | |
| toolsConfigFileName | Tools configuration file. |
| toolsLanguageConfigFileName | Tools language file. |
| languageConfigFileName | Silex language file. |
| adminLanguage | Language for the admon mode / editing / WYSIWYG. |
| language | Website language. |
| AVAILABLE_LANGUAGE_LIST | The available language list. |
| DEFAULT_LANGUAGE | Default language used by language auto detection if the language code of the browser is not in AVAILABLE_LANGUAGE_LIST. |
| config constants | |
| version | SILEX version Read from SCRIPT_LATEST_SILEX_VERSION through a call to silex.core.Com::getLatestSilexVersion. |
| server config, read in silex.ini | |
| PHP_SESSION_WAKE_UP_INTERVAL | interval time for the timer used to keep php session active in milliseconds |
| ALLOW_LOGIN | Allow access to SILEX WYSIWYG (allow context menu which leads to authentication process + cookie). |
| CONFIG_START_SECTION | Name of first page of the website. |
| CONFIG_WEBSITE_CONF_FILE | Name of the configuration file for the website. |
| FLASH_PLAYER_FOLDER | Name of the folder which will contain the layer skin folder. |
| flashPlayerVersion | Flash player version used for a given website. |
| ENABLE_DEEPLINKING | True if the website uses deeplinking. |
| path on the server | |
| initialToolsFolderPath | Tools folder path on the server. |
| initialFtpFolderPath | Media folder path on the server. |
| initialContentFolderPath | Contents folder path on the server. |
| installPath | Install folder path on the server. |
| layoutFolderPath | Layouts folder path on the server. |
| screen saver | |
| screenSaverDelay | Number of seconds of inactivity before the screen saver activation commands are executed. |
| screenSaverActivateCommands | Commands to be executed after inactivity was detected, i.e. |
| screenSaverDeactivateCommands | Commands to be executed in screen saver mode after activiity is detected, i.e. |
| XRAY_URL | URL of xray online debugging console. |
| SHARED_OBJECT_NAME | |
| initialLayoutFile | First page will be opened in this layout. |
| layoutStageWidth | Stage width for a given website. |
| layoutStageHeight | Stage height for a given website. |
| scaleMode | scaleMode for a given website. |
| googleAnaliticsAccountNumber | id given by google when you create your free google analytics account. |
| phpmyvisitesSiteNumber | Number given by phpMyVisites when you create a new website Ycan set this value in the website tool box. |
| phpmyvisitesURL | |
| layerSkinUrl | Layer skin used for a given website. |
| bgColor | Background color for a given website. |
| toolsFolderRelativePath | Tools sub-folder to be concidered as the root for the tools for a given website, starting from the tools/ folder of the server. |
| websiteFtpRelativeUrl | Media sub-folder to be concidered as the root for the library tool box for a given website, starting from the media/ folder of the server. |
| commonAlertDuration | Default duration of a “alertSimple” message. |
| minimumAlertDuration | Minimum duration of a “alertSimple” message. |
| web services | |
| gatewayRelativePath | Path of the amfPhp gateway on the server. |
| DataExchangeServiceName | Name of the data exchange service of silex. |
| FtpServiceName | Name of the ftp service name of silex. |
| php scripts | var SCRIPT_UPLOAD:String=”cgi/scripts/upload.php”; var SCRIPT_DELETE:String=”cgi/scripts/delete.php”; |
| SCRIPT_LOG | Path of the log script. |
| SCRIPT_DOWNLOAD | Path of the download script. |
| SCRIPT_LATEST_SILEX_VERSION | URL of the script used to retrieve SILEX latest stable version. |
| accessors constants | |
| sepchar | Word separator character in page names. |
| accessorsSepchar | Variables separator character for accessors. |
| accessorsLeftTag | Left separator for the accessors. |
| accessorsLeftTagHtml | |
| accessorsRightTag | Right separator for the accessors. |
| accessorsRightTagHtml | |
| filterSeparator | Separator for the filters in accessors default value is space char : <<filtername accessorname>> |
| sequencer constants | |
| SEQUENCER_STATE_PLAY | |
| SEQUENCER_STATE_PAUSE | |
| SEQUENCER_STATE_STOP | |
| debug | |
| DEBUG_LEVEL_ERROR | |
| DEBUG_LEVEL_WARNING | |
| DEBUG_LEVEL_DEBUG | |
| constants for file properties | |
| itemTypeField | |
| itemSizeField | |
| itemNameField | |
| itemModifDateField | |
| itemWidthField | |
| itemHeightField | |
| itemContentField | |
| characters for strings cleaning function | |
| UTF8_LOWER_ACCENTS | UTF-8 lookup table for lower case accented letters This lookuptable defines replacements for accented characters from the ASCII-7 range. |
| UTF8_UPPER_ACCENTS |
var ANIM_NAME_PRELOAD: String
Preload animation name in the layout files. Name of the screens in the layout files. For example, in layouts/minimal.fla you have the screens on the left, under application main screen. This animation is played before any content is loaded (either text or medias) and after the transition of the parent page.
var ANIM_NAME_SHOW: String
Show animation name in the layout files. Name of the screens in the layout files. For example, in layouts/minimal.fla you have the screens on the left, under application main screen. This animation is played once the content is loaded (at least the text) and after the preload anim is over.
var ANIM_NAME_CLOSE: String
Close animation name in the layout files. Name of the screens in the layout files. For example, in layouts/minimal.fla you have the screens on the left, under application main screen. This animation is played when the current page is closing before the parent “transition close” anim is started and after the current page “transition close” anim is over (only if a child page was open).
var ANIM_NAME_TRANSITION: String
Transition animation name in the layout files. Name of the screens in the layout files. For example, in layouts/minimal.fla you have the screens on the left, under application main screen. This animation is played when a page is opened in the current layout and only after the show anim is over.
var ANIM_NAME_TRANSITION_CLOSE: String
Transition close animation name in the layout files. Name of the screens in the layout files. For example, in layouts/minimal.fla you have the screens on the left, under application main screen. This animation is played when the current layout has a child page opened in and this child page is closed.
var _mouse: Boolean
True if mouse pointer is visible and false otherwise. Very useful for touch screens. May be true or false and String or Boolean. You may change this for one specific website at runtime: use a command to change the value of silex.config.mouse . You can change the default value for all websites on a server: in conf/silex.ini, mouse parameter. @default true @example onRelease silex.config.mouse=false
var globalContext: String
When you change this value, the website switches to another context, e.g. fr, en, nl, highBandWidth, lowBandWidth... any value that you want to use in the medias context
var screenSaverDeactivateCommands: String
Commands to be executed in screen saver mode after activiity is detected, i.e. when the the mouse moved and screen saver deactivates. Commands have to be separated by a pipe: “|”. @example alertSimple(“exits the screen saver mode”)|open:home page
Loader stage width.
var LOADER_STAGE_HALF_SIZE_X: Number
Loader stage height.
var LOADER_STAGE_HALF_SIZE_Y: Number
scale mode name, case insensitive
public static var SCALE_MODE_PIXEL: String
scale mode name, case insensitive
public static var SCALE_MODE_SCROLL: String
scale mode name, case insensitive
public static var SCALE_MODE_NO_SCALE: String
scale mode name, case insensitive
public static var SCALE_MODE_SHOW_ALL: String
Preload animation name in the layout files.
var ANIM_NAME_PRELOAD: String
Show animation name in the layout files.
var ANIM_NAME_SHOW: String
Close animation name in the layout files.
var ANIM_NAME_CLOSE: String
Transition animation name in the layout files.
var ANIM_NAME_TRANSITION: String
Transition close animation name in the layout files.
var ANIM_NAME_TRANSITION_CLOSE: String
var PROPERTIES_TYPE_BOOLEAN: String
var PROPERTIES_TYPE_NUMBER: String
var PROPERTIES_TYPE_TEXT: String
var PROPERTIES_TYPE_RICHTEXT: String
var PROPERTIES_TYPE_COLOR: String
var PROPERTIES_TYPE_COMMAND: String
var PROPERTIES_TYPE_URL: String
var PROPERTIES_TYPE_ARRAY: String
var PROPERTIES_TYPE_ARRAY_ARRAY: String
var UI_PLAYERS_EVENT_PRESS
var UI_PLAYERS_EVENT_RELEASE
var UI_PLAYERS_EVENT_ROLLOVER
var UI_PLAYERS_EVENT_ROLLOUT
var UI_PLAYERS_EVENT_MOUSEMOVE
var UI_PLAYERS_EVENT_ONLOAD
var UI_PLAYERS_EVENT_LOAD_START
var UI_PLAYERS_EVENT_LOAD_ERROR
var UI_PLAYERS_EVENT_LOAD_PROGRESS
var UI_PLAYERS_EVENT_LOAD_COMPLETE
var UI_PLAYERS_EVENT_LOAD_INIT
var UI_PLAYERS_EVENT_UNLOAD
var UI_PLAYERS_EVENT_DEEPLINK
var UI_PLAYERS_EVENT_XMLLOADED
var UI_PLAYERS_EVENT_CONTENT_SHOW
var UI_PLAYERS_EVENT_CONTENT_HIDE
var UI_PLAYERS_EVENT_CHILD_SHOW
var UI_PLAYERS_EVENT_CHILD_HIDE
var UI_PLAYERS_EVENT_CONTENT_HIDE_START
var UI_PLAYERS_EVENT_CHANGED
var UI_PLAYERS_EVENT_KILLFOCUS
var UI_PLAYERS_EVENT_SETFOCUS
var UI_PLAYERS_EVENT_SCROLLER
var UI_PLAYERS_EVENT_STATUS
var UI_PLAYERS_EVENT_METADATA
var UI_PLAYERS_EVENT_BUFFER_EMPTY
var UI_PLAYERS_EVENT_BUFFER_FULL
var UI_PLAYERS_EVENT_NOSTREAM
var UI_PLAYERS_EVENT_PLAY
var UI_PLAYERS_EVENT_PAUSE
var UI_PLAYERS_EVENT_STOP
var UI_PLAYERS_EVENT_START
var UI_PLAYERS_EVENT_END
var UI_PLAYERS_EVENT_SOUND_COMPLETE
var UI_PLAYERS_EVENT_SOUND_PLAY
var UI_PLAYERS_EVENT_SOUND_PAUSE
var UI_PLAYERS_EVENT_SOUND_STOP
var UI_PLAYERS_EVENT_SOUND_ID3
var UI_PLAYERS_EVENT_SOUND_LOADED
True if mouse pointer is visible and false otherwise.
var _mouse: Boolean
function set mouse( showOrHide )
When you change this value, the website switches to another context, e.g.
var globalContext: String
The available context list.
var AVAILABLE_CONTEXT_LIST: String
Tools configuration file.
var toolsConfigFileName: String
Tools language file.
var toolsLanguageConfigFileName: String
Silex language file.
var languageConfigFileName: String
Language for the admon mode / editing / WYSIWYG.
var adminLanguage: String
Website language.
var language: String
The available language list.
var AVAILABLE_LANGUAGE_LIST: String
Default language used by language auto detection if the language code of the browser is not in AVAILABLE_LANGUAGE_LIST.
var DEFAULT_LANGUAGE
SILEX version Read from SCRIPT_LATEST_SILEX_VERSION through a call to silex.core.Com::getLatestSilexVersion.
var version: String
interval time for the timer used to keep php session active in milliseconds
var PHP_SESSION_WAKE_UP_INTERVAL: Number
Allow access to SILEX WYSIWYG (allow context menu which leads to authentication process + cookie).
var ALLOW_LOGIN: String
Name of first page of the website.
var CONFIG_START_SECTION: String
Name of the configuration file for the website.
var CONFIG_WEBSITE_CONF_FILE: String
Name of the folder which will contain the layer skin folder.
var FLASH_PLAYER_FOLDER: String
Flash player version used for a given website.
var flashPlayerVersion: String
True if the website uses deeplinking.
var ENABLE_DEEPLINKING: String
Tools folder path on the server.
var initialToolsFolderPath: String
Media folder path on the server.
var initialFtpFolderPath: String
Contents folder path on the server.
var initialContentFolderPath: String
Install folder path on the server.
var installPath: String
Layouts folder path on the server.
var layoutFolderPath: String
Number of seconds of inactivity before the screen saver activation commands are executed.
var screenSaverDelay: Number
Commands to be executed after inactivity was detected, i.e.
var screenSaverActivateCommands: String
Commands to be executed in screen saver mode after activiity is detected, i.e.
var screenSaverDeactivateCommands: String
URL of xray online debugging console.
var XRAY_URL: String
var SHARED_OBJECT_NAME: String
First page will be opened in this layout.
var initialLayoutFile: String
Stage width for a given website.
var layoutStageWidth: String
Stage height for a given website.
var layoutStageHeight: String
scaleMode for a given website.
var scaleMode: String
id given by google when you create your free google analytics account.
var googleAnaliticsAccountNumber: String
Number given by phpMyVisites when you create a new website Ycan set this value in the website tool box.
var phpmyvisitesSiteNumber: String
var phpmyvisitesURL: String
Layer skin used for a given website.
var layerSkinUrl: String
Background color for a given website.
var bgColor: String
Tools sub-folder to be concidered as the root for the tools for a given website, starting from the tools/ folder of the server.
var toolsFolderRelativePath: String
Media sub-folder to be concidered as the root for the library tool box for a given website, starting from the media/ folder of the server.
var websiteFtpRelativeUrl: String
Default duration of a “alertSimple” message.
var commonAlertDuration: Number
Minimum duration of a “alertSimple” message.
var minimumAlertDuration: Number
Path of the amfPhp gateway on the server.
var gatewayRelativePath: String
Name of the data exchange service of silex.
var DataExchangeServiceName: String
Name of the ftp service name of silex.
var FtpServiceName: String
Path of the log script.
var SCRIPT_LOG: String
Path of the download script.
var SCRIPT_DOWNLOAD: String
URL of the script used to retrieve SILEX latest stable version.
var SCRIPT_LATEST_SILEX_VERSION: String
Word separator character in page names.
var sepchar: String
Variables separator character for accessors.
var accessorsSepchar: String
Left separator for the accessors.
var accessorsLeftTag: String
var accessorsLeftTagHtml: String
Right separator for the accessors.
var accessorsRightTag: String
var accessorsRightTagHtml: String
Separator for the filters in accessors default value is space char : <<filtername accessorname>>
var filterSeparator: String
var SEQUENCER_STATE_PLAY: String
var SEQUENCER_STATE_PAUSE: String
var SEQUENCER_STATE_STOP: String
var DEBUG_LEVEL_ERROR: String
var DEBUG_LEVEL_WARNING: String
var DEBUG_LEVEL_DEBUG: String
var itemTypeField
var itemSizeField
var itemNameField
var itemModifDateField
var itemWidthField
var itemHeightField
var itemContentField
UTF-8 lookup table for lower case accented letters This lookuptable defines replacements for accented characters from the ASCII-7 range.
var UTF8_LOWER_ACCENTS: Array
var UTF8_UPPER_ACCENTS: Array
Retrieve the last available version of SILEX.
function getLatestSilexVersion( callback: Function )