NAJAX Configuration file.
This file contains most of the available NAJAX configuration options.
You can modify this file, but you should be aware that NAJAX is only tested with the default configuration.
Defines the method name that is called when NAJAX needs more information about an object.
Every class that you will register with NAJAX_Client should implement this method to provide more information about its methods and variables.
Example:
- <script type="text/javascript">
- <?php
- class MetaExample
- {
- var $privateVar;
- var $publicVar;
- function PrivateMethod() {}
- function PublicMethod() {}
- function najaxGetMeta()
- {
- NAJAX_Client::privateMethods($this, array('PrivateMethod'));
- NAJAX_Client::privateVariables($this, array('privateVar'));
- NAJAX_Client::mapMethods($this, array('PublicMethod'));
- }
- }
- require_once('najax.php');
- print NAJAX_Client::register('MetaExample', 'server.php');
- ?>
- </script>
Defines the default lifetime for an event.
The default value is 2 minutes. Please note, that the lifetime should be between 30 seconds and 5 minutes for performance reasons.
Defines the data source name and parameters to use when event's information is saved.
DSN Examples:
- File://c:/events.txt
- MySQL:
Defines the prefix that is used to indicate the Serializer to skip string serialization.
Example:
- <?php
- require_once('najax.php');
- $arr = array(1, 2, NAJAX_SERIALIZER_SKIP_STRING . 'function skip() { alert("skip."); }');
- ?>
- <script type="text/javascript">
- var arr = <?= NAJAX_Serializer::serialize($arr) ?>;
- arr[2]();
- </script>
Documentation generated on Tue, 20 Sep 2005 21:40:13 +0300 by phpDocumentor 1.3.0RC3