private function getAjaxDefinitions() { $definitionsObject = new EcommerceConfigDefinitions(); $methodArray = $definitionsObject->getAjaxMethods(); $requestor = new ArrayData(array("ID" => "[ID]", "ClassName" => "[CLASSNAME]")); $obj = EcommerceConfigAjax::get_one($requestor); foreach ($methodArray as $method => $description) { if ($method != "setRequestor") { if (strpos($method, "lassName")) { $selector = "classname"; } else { $selector = "id"; } $note = "\r\n\t\t\t\t\tThis variable can be used like this: <pre><div {$selector}=\"\$AJAXDefinitions." . $method . "\"></div></pre>\r\n\t\t\t\t\t<a href=\"/shoppingcart/test/\">AJAX</a> will then use this selector to put the following content: "; $this->definitions["Templates"]["AJAXDefinitions_{$method}"] = $note . "<br />" . $description; $this->configs["Templates"]["AJAXDefinitions_{$method}"] = $obj->{$method}(); $this->defaults["Templates"]["AJAXDefinitions_{$method}"] = ""; } } }