* Main nodes in the XML tree ('menu' is ignored)
*/
private $mainNodes = array(
- 'header',
- 'entries',
- 'footer',
+ 'block-list',
);
/**
* Sub nodes in the XML tree
*/
private $subNodes = array(
+ 'entry-list',
+ 'entry',
'entries-content',
+ 'header',
+ 'footer',
+ 'block',
'title',
- 'entry',
- 'anchor',
'design',
'text',
'advert',
+ 'anchor',
+ 'anchor-id',
+ 'anchor-text',
+ 'anchor-title',
+ 'anchor-href',
);
/**
//* 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
/**
* Starts the menu property 'title'
*
- * @param $id Id of the menu
- * @param $class The title to add to the menu
* @return void
*/
- private function startMenuTitle ($id, $class) {
- // Set id as current
- $this->curr['id'] = $id;
-
- // Load the title template for this page
- $this->getTemplateInstance()->loadCodeTemplate('menu_title_' . $id . '_start');
-
- // Set the variable group to page
- $this->setVariableGroup('menu');
-
- // Set its content in this template instance
- $this->assignVariable('title_start_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData());
+ private function startTitle () {
+ $this->partialStub('Cleared due to XML rewrite.');
}
/**
* @return void
*/
private function finishTitle () {
- // Load the title template for this page
- $this->getTemplateInstance()->loadCodeTemplate('menu_title_' . $this->curr['id'] . '_end');
-
- // Set the variable group to page
- $this->setVariableGroup('menu');
-
- // Set its content in this template instance
- $this->assignVariable('title_end_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData());
+ $this->partialStub('Cleared due to XML rewrite.');
}
/**
*
* @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) {
- $this->partialStub('id='.$id.',link='.$link.',title='.$title);
+ private function startAnchor () {
+ $this->partialStub('Please implement this method.');
}
/**