*/
private $mainNodes = array(
'block-list',
- 'header',
- 'entry-list',
- 'footer',
);
/**
* Sub nodes in the XML tree
*/
private $subNodes = array(
- 'block',
+ 'entry-list',
+ 'entry',
'entries-content',
+ 'header',
+ 'footer',
+ 'block',
'title',
- 'entry',
'anchor',
'design',
'text',
//* DEBUG: */ echo "START: >".$element."<<br />\n";
if (in_array($element, $this->getMainNodes())) {
// Okay, main node found!
- $methodName = 'startMenu' . $this->convertToClassName($element);
+ $methodName = 'start' . $this->convertToClassName($element);
// Set it
$this->setCurrMainNode($element);
} elseif (in_array($element, $this->getSubNodes())) {
// Sub node found
- $methodName = 'startMenu' . $this->convertToClassName($element);
+ $methodName = 'start' . $this->convertToClassName($element);
} elseif ($element != 'menu') {
// Invalid node name found
throw new InvalidXmlNodeException(array($this, $element, $attributes), XmlParser::EXCEPTION_XML_NODE_UNKNOWN);
* @param $templateDepency A template to load to satisfy depencies
* @return void
*/
- private function startMenuEntries ($templateDepency = '') {
+ private function startEntryList ($templateDepency = '') {
// Handle the depency template
$this->handleTemplateDepency('entries', $templateDepency);
*
* @return void
*/
- private function finishEntries () {
+ private function finishEntryList () {
// Load the header template for this page
$this->getTemplateInstance()->loadCodeTemplate('menu_entries_end');
*
* @return void
*/
- private function startMenuHeader () {
+ private function startHeader () {
// Do we have a template instance?
if (is_null($this->getTemplateInstance())) {
// Init template instance for underlaying web templates
*
* @return void
*/
- private function startMenuFooter () {
+ private function startFooter () {
// Do we have a template instance?
if (is_null($this->getTemplateInstance())) {
// Init template instance for underlaying web templates
* @param $class The title to add to the menu
* @return void
*/
- private function startMenuTitle ($id, $class) {
+ private function startTitle ($id, $class) {
// Set id as current
$this->curr['id'] = $id;
*
* @return void
*/
- private function startMenuText () {
+ private function startText () {
// Do we have a template instance?
if (is_null($this->getTemplateInstance())) {
// Init template instance for underlaying web templates
* @param $id Id of the menu
* @return void
*/
- private function startMenuEntry ($id) {
+ private function startEntry ($id) {
// Set id as current
$this->curr['entry_id'] = $id;
* @param $title Link title of the anchor
* @return void
*/
- private function startMenuAnchor ($id, $link, $title) {
+ private function startAnchor ($id, $link, $title) {
$this->partialStub('id='.$id.',link='.$link.',title='.$title);
}