PageRenderTime 42ms CodeModel.GetById 13ms app.highlight 21ms RepoModel.GetById 2ms app.codeStats 0ms

/source/Plug-in/xajax/xajax_core/legacy.inc.php

http://prosporous.googlecode.com/
PHP | 73 lines | 72 code | 1 blank | 0 comment | 2 complexity | 8051eba523f5d7855e16c41f8fdfd884 MD5 | raw file
 1<?php
 2class legacyXajaxResponse extends xajaxResponse {
 3	function outputEntitiesOn()		{ $this->setOutputEntities(true); }
 4	function outputEntitiesOff()	{ $this->setOutputEntities(false); }
 5	function addConfirmCommands()	{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'confirmCommands'), $temp); }
 6	function addAssign()			{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'assign'), $temp); }
 7	function addAppend()			{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'append'), $temp); }
 8	function addPrepend()			{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'prepend'), $temp); }
 9	function addReplace()			{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'replace'), $temp); }
10	function addClear()				{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'clear'), $temp); }
11	function addAlert()				{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'alert'), $temp); }
12	function addRedirect()			{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'redirect'), $temp); }
13	function addScript()			{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'script'), $temp); }
14	function addScriptCall()		{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'call'), $temp); }
15	function addRemove()			{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'remove'), $temp); }
16	function addCreate()			{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'create'), $temp); }
17	function addInsert()			{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'insert'), $temp); }
18	function addInsertAfter()		{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'insertAfter'), $temp); }
19	function addCreateInput()		{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'createInput'), $temp); }
20	function addInsertInput()		{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'insertInput'), $temp); }
21	function addInsertInputAfter()	{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'insertInputAfter'), $temp); }
22	function addRemoveHandler()		{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'removeHandler'), $temp); }
23	function addIncludeScript()		{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'includeScript'), $temp); }
24	function addIncludeCSS()		{ $temp=func_get_args(); return call_user_func_array(array(&$this, 'includeCSS'), $temp); }
25	function &getXML()				{ return $this; }
26}
27
28class legacyXajax extends xajax {
29	function legacyXajax($sRequestURI='', $sWrapperPrefix='xajax_', $sEncoding=XAJAX_DEFAULT_CHAR_ENCODING, $bDebug=false)
30	{
31		parent::xajax();
32		$this->configure('requestURI', $sRequestURI);
33		$this->configure('wrapperPrefix', $sWrapperPrefix);
34		$this->configure('characterEncoding', $sEncoding);
35		$this->configure('debug', $bDebug);
36	}
37	function registerExternalFunction($mFunction, $sInclude)
38	{
39		$xuf =& new xajaxUserFunction($mFunction, $sInclude);
40		$this->register(XAJAX_FUNCTION, $xuf);
41	}
42	function registerCatchAllFunction($mFunction)
43	{
44		if (is_array($mFunction)) array_shift($mFunction);
45		$this->register(XAJAX_PROCESSING_EVENT, XAJAX_PROCESSING_EVENT_INVALID, $mFunction);
46	}
47	function registerPreFunction($mFunction)
48	{
49		if (is_array($mFunction)) array_shift($mFunction);
50		$this->register(XAJAX_PROCESSING_EVENT, XAJAX_PROCESSING_EVENT_BEFORE, $mFunction);
51	}
52	function canProcessRequests()			{ return $this->canProcessRequest(); }
53	function processRequests()				{ return $this->processRequest(); }
54	function setCallableObject(&$oObject)	{ return $this->register(XAJAX_CALLABLE_OBJECT, $oObject); }
55	function debugOn()						{ return $this->configure('debug',true); }
56	function debugOff()						{ return $this->configure('debug',false); }
57	function statusMessagesOn()				{ return $this->configure('statusMessages',true); }
58	function statusMessagesOff()			{ return $this->configure('statusMessages',false); }
59	function waitCursorOn()					{ return $this->configure('waitCursor',true); }
60	function waitCursorOff()				{ return $this->configure('waitCursor',false); }
61	function exitAllowedOn()				{ return $this->configure('exitAllowed',true); }
62	function exitAllowedOff()				{ return $this->configure('exitAllowed',false); }
63	function errorHandlerOn()				{ return $this->configure('errorHandler',true); }
64	function errorHandlerOff()				{ return $this->configure('errorHandler',false); }
65	function cleanBufferOn()				{ return $this->configure('cleanBuffer',true); }
66	function cleanBufferOff()				{ return $this->configure('cleanBuffer',false); }
67	function decodeUTF8InputOn()			{ return $this->configure('decodeUTF8Input',true); }
68	function decodeUTF8InputOff()			{ return $this->configure('decodeUTF8Input',false); }
69	function outputEntitiesOn()				{ return $this->configure('outputEntities',true); }
70	function outputEntitiesOff()			{ return $this->configure('outputEntities',false); }
71	function allowBlankResponseOn()			{ return $this->configure('allowBlankResponse',true); }
72	function allowBlankResponseOff()		{ return $this->configure('allowBlankResponse',false); }
73}