public function __construct($name) { // Functions $this->addMethod("getServerTime", false, false, array(), "Return the date and time of the server"); // Methods $this->addMethod("getClientIP"); $this->addMethod("getPrivateData", false, true); $this->addMethod("getProducts", false, true); // Data $this->addData("Date", date("D M-d \\of Y")); $this->addData("Server Description", "This is an example divAjaxMapping"); parent::__construct($name); }
function getClientIP() { return divAjaxMapping::getClientIPAddress(); }