* * @global class $_whomp_current_user */ $_whomp_current_user = new Whomp_User_Current(); /** * Information to be included in the head of a document * * @global array $_whomp_head_data */ $_whomp_head_data = array('base' => '<base href="' . $_whomp_base_url . '" />', 'link' => array(), 'meta' => array('generator' => '<meta name="generator" content="' . $_whomp_configuration->version_information . '" />'), 'script' => array(), 'style' => array(), 'title' => '<title>Whomp CMS!</title>'); /** * The requested node information from the database * * @global array $_whomp_node_array */ $_whomp_node_array = whomp_get_node_array($_whomp_requested_page); // check if the node class exists try { /** * The whomp node class * * @global class $_whomp_node_class */ $_whomp_node_class = whomp_get_node_class($_whomp_node_array); // load the node information into the node class $_whomp_node_class->loadNode($_whomp_node_array); } catch (Exception $e) { whomp_output_exception($e, true); } // end try // check if the template class exists
/** * Gets a node's XML data and XSL path and returns it in an array * * First the node's information is retrieved from the database. Then the * node's type class file is required and the class is loaded with the * node's options. Then the getNodeXml and getNodeXslPath methods are * called and the information is returned. The array is in the following * format: * <pre> * Array ( * 'xml' => the xml as a string * 'xsl' => the path to the xsl file * ) * </pre> * * @author Schmalls / Joshua Thompson <*****@*****.**> * @version 0.0.0 * @since 0.0.0 * @throws Exception if the class file does not exist * @param array $options the node information * @return array the XML data and XSL path * @deprecated */ function whomp_get_node_xml_xsl($options) { // get the node information $options = whomp_get_node_array($options); // check if the node type class file exists $class_string = $options['type']; if (class_exists($class_string)) { // if so, create the node class $node_class = new $class_string($options); // get the XML data $return['xml'] = $node_class->getNodeXml(); // get the XSL path $return['xsl'] = $node_class->getNodeXslPath(); } else { // if not, throw exception throw new Exception('The ' . $class_string . ' class file does not exist.'); } // end if // return the information return $return; }