Class CMS_linxNodespec

Description

Class CMS_linxNodespec

Manages a linx "nodespec" tag representation. Herited from Automne v1, it's a specification of a node (a page) XML encoded. It can be a direct specification or a relative one (ex. the father of the page with ID 12, ...)

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

CMS_grandFather
   |
   --CMS_linxNodespec
Method Summary
 static CMS_linxNodespec createNodespec (DOMElement $tag, [ $crosswebsite = false])
 void __construct ( $type,  $value,  $relativeOffset, [ $crosswebsite = false], [ $website = ''], string $innerContent)
 string getRelativeType ()
 CMS_page getTarget ( &$page, string $publicTree, CMS_page $page)
Methods
static createNodespec (line 211)

Create a CMS_linxNodespec instance from a given DOMElement

  • return: The CMS_linxNodespec instance
  • access: public
static CMS_linxNodespec createNodespec (DOMElement $tag, [ $crosswebsite = false])
  • DOMElement $tag: The DOMElement to convert
  • $crosswebsite
Constructor __construct (line 75)

Constructor.

initializes the linxDisplay.

  • access: public
void __construct ( $type,  $value,  $relativeOffset, [ $crosswebsite = false], [ $website = ''], string $innerContent)
  • string $innerContent: The tag content.
  • $type
  • $value
  • $relativeOffset
  • $crosswebsite
  • $website
getRelativeType (line 114)

Get the relative type if the nodespec type is "relative", false otherwise

  • return: The relative type, or false if not relative
  • access: public
string getRelativeType ()
getTarget (line 131)

Computes the target of the tag.

  • return: The target page, of false if no target.
  • access: public
CMS_page getTarget ( &$page, string $publicTree, CMS_page $page)
  • CMS_page $page: The page where the linx tag is.
  • string $publicTree: Is the calculus made in the public or edited tree ?
  • &$page

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:47 +0100 by phpDocumentor 1.4.3