![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
>Home
>Features
>How does it work?
>Documentation
>Tutorials
>Examples
>Help Forum
>Download
>Extensions
>GitHub Project
PackagesdefaultAPI ClientComponents Daemon Webfrontend Full element index APIClass tree: APIIndex: API Classes
Controls
XULButton XULCheckBox XULColorPicker XULDatePicker XULMenuList XULProgressMeter XULRadio XULRadioGroup XULScale XULSplitter XULTextBox XULTimePicker
FileHandling
ClientBaseFile ClientDirectory ClientFile ClientFileService FileDownloader FileFromStreamDownloader FileFromStringDownloader FileToStreamUploader FileToStringUploader FileUploader XULFilePicker
TextAndImages
XULDescription XULDirectImage XULFileSystemImage XULFlash XULHTMLEmbed XULHTMLVideo XULImage XULImageSvg XULLabel
Layout
XULBBox XULBox XULColumn XULColumns XULDeck XULGrid XULHBox XULHTMLBox XULRow XULRows XULScrollBox XULStack XULVBox
Lists
XULListBox XULListCell XULListCol XULListCols XULListHead XULListHeader XULListItem XULRichListBox XULRichListItem
MenusAndPopups
XULMenu XULMenuBar XULMenuItem XULMenuPopup XULMenuSeparator XULPanel XULPopup XULPopupSet XULToolTip
TabsAndGrouping
XULCaption XULGroupBox XULSeparator XULSpacer XULTab XULTabBox XULTabPanel XULTabPanels XULTabs
Trees
XULTree XULTreeCell XULTreeChildren XULTreeCol XULTreeCols XULTreeItem XULTreeRow XULTreeSeparator
Windows
AlertNotification PromptService XULBasicWindow XULChildWindow XULDialog XULPrefPane XULPrefWindow XULWindow Filessubpackage Applicationsubpackage CodeEditor subpackage Comm subpackage Controls subpackage CustomTree subpackage Debugger subpackage Editor subpackage ErrorConsole subpackage FileHandling subpackage HelperElements subpackage Layout subpackage Lists subpackage MenusAndPopups subpackage Node subpackage Registry subpackage Scripting subpackage Service subpackage TabsAndGrouping subpackage TextAndImages subpackage Toolbars subpackage Trees subpackage Windows subpackage WindowStructure |
Class: ServiceSource Location: /sys/service.php.incClass OverviewThe base class for all SiteFusion services The Service class is the parent class for all SiteFusion services. Extending classes should always define an init($arguments) method. This method is called when the service process has initialized, and thus is the place to setup your basic service functionality.
Class Variables$callHandlers = array()
$globalEventHandlers = array()
Class Methodsmethod fireGlobalEvent() [line 177]
Fires a global event This method fires a global event that will reach all SiteFusion processes within the same application group.
Parameters:
[ Top ]
method getEventGroups() [line 220]
Get a list of joined Event Groups Applications and services that have joined the same event groups will receive each other's global events
[ Top ]
method handleCall() [line 70]method handleGlobalEvent() [line 139]
[INTERNAL FUNCTION] Handles incoming global events This function is called by the ApplicationProcess when it receives a global event from the daemon.
Parameters:
[ Top ]
method joinEventGroup() [line 194]
Joins an Event Group Applications and services that have joined the same event groups will receive each other's global events
Parameters:
[ Top ]
method partEventGroup() [line 208]
Parts an Event Group Applications and services that have joined the same event groups will receive each other's global events
Parameters:
[ Top ]
method removeCallHandler() [line 66]method removeGlobalEventHandler() [line 114]
Remove a handler for a global event Removes a handler for the given global event with the same syntax as setGlobalEventHandler
Parameters:
[ Top ]
method setCallHandler() [line 62]method setDefaultEventGroup() [line 56]method setGlobalEventHandler() [line 96]
Set a handler for a global event Global events originate from other SiteFusion processes. A global event will only reach your service when it was fired from an application or service in the same application group. Global events are similar to local events, and can also carry additional data inside the Event object. The handler will receive the event object as the first argument, and event parameters as additional arguments.
Parameters:
[ Top ]
method setInterval() [line 261]
Sets a server-based interval callback This function is similar to the JavaScript window.setInterval() function. It dispatches a timer for a certain amount of milliseconds, and fires the handler method when the timer expires. The timer then resets and recycles, until it is cancelled by calling the cancel() method on the returned timer object.
Parameters:
[ Top ]
method setTimeout() [line 239]
Sets a server-based timeout callback This function is similar to the JavaScript window.setTimeout() function. It dispatches a timer for a certain amount of milliseconds, and fires the handler method when the timer expires. The timer can be cancelled by calling the cancel() method on the returned timer object.
Parameters:
[ Top ]
Documentation generated on Mon, 07 Apr 2014 00:52:12 +0200 by phpDocumentor 1.4.3 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
All content is © 2009 by FrontDoor Media Group, is available under the Creative Commons Attribution-Share Alike 2.5 License and is maintained by the SiteFusion.org staff |