Class CMS_linx

Description

Class CMS_linx

Manages a linx representation

Located in /automne/classes/pageContent/linx.php (line 29)

CMS_grandFather
   |
   --CMS_linx
Method Summary
 void __construct (string $type, string $tagContent, CMS_page $page, [boolean $publicTree = false], [ $args = array()])
 string getOutput ([ $register = false])
 multidimensionnal _buildRecursiveTargets ( $pageID, [ $level = 0])
 boolean _buildTargets ()
 boolean _parseSelection (CMS_XMLTag $selectionTag)
 string _register ()
 boolean _selectTargets (array(CMS_page) $targets)
Methods
Constructor __construct (line 140)

Constructor.

initializes the linx.

  • access: public
void __construct (string $type, string $tagContent, CMS_page $page, [boolean $publicTree = false], [ $args = array()])
  • string $type: The linx type
  • string $tagContent: The tag content.
  • CMS_page $page: The page we're parsing
  • boolean $publicTree: Does the linx must be calculated in the public or edited tree ?
  • $args
getOutput (line 228)

Get the HTML output

  • return: The HTML
  • access: public
string getOutput ([ $register = false])
  • $register
_buildRecursiveTargets (line 491)

Recursive function to Build the targets tree (recursivelinks) then apply the selection to the builded targets Uses the websites catalog to exclude (for desclinks and sublinks) pages that are not part of the current website

  • return: array : array("recursiveTree" => tree of page id, "targets" => cms_page objects);
  • access: private
multidimensionnal _buildRecursiveTargets ( $pageID, [ $level = 0])
  • $pageID
  • $level
_buildTargets (line 415)

Build the targets from the selection start and stop nodes Uses the websites catalog to exclude (for desclinks and sublinks) pages that are not part of the current website

  • return: true on success, false on failure
  • access: private
boolean _buildTargets ()
_parseSelection (line 350)

Parse a "selection" XML tag searching for start and stop nodespecs This will fill the _selectionStartPageTags and _selectionStopPageTag attributes

  • return: true on success, false on failure
  • access: private
boolean _parseSelection (CMS_XMLTag $selectionTag)
  • CMS_XMLTag $selectionTag: The selection tag to parse
_register (line 310)

Register the linx in the surveillance tables

  • return: The HTML
  • access: private
string _register ()
_selectTargets (line 524)

Selects the targets : apply the selection to the builded targets

  • return: true on success, false on failure
  • access: private
boolean _selectTargets (array(CMS_page) $targets)
  • array(CMS_page) $targets: The build targets of which we want the selection

Inherited Methods

Inherited From CMS_grandFather

 CMS_grandFather::autoload()
 CMS_grandFather::hasError()
 CMS_grandFather::log()
 CMS_grandFather::PHPErrorHandler()
 CMS_grandFather::raiseError()
 CMS_grandFather::setDebug()
 CMS_grandFather::setLog()
 CMS_grandFather::_raiseError()
 CMS_grandFather::__call()
Class Constants

Documentation generated on Wed, 15 Feb 2012 15:31:41 +0100 by phpDocumentor 1.4.3