Class CMS_linxCondition

Description

Class CMS_linxCondition

Manages a linx "condition" tag representation

Located in /automne/classes/pageContent/linxcondition.php (line 27)

CMS_grandFather
   |
   --CMS_linxCondition
Method Summary
 static CMS_linxNodespec createCondition (DOMElement $tag)
 void __construct ( $tag, string $property, string $operator, string $tagContent)
 boolean levelPasses (integer $level)
 boolean pagePasses ( &$parsedPage,  &$page, boolean $publicTree, integer $rank, CMS_page $page)
 mixed _getPageProperty ( &$page, string $property, boolean $public, CMS_page $page)
Methods
static createCondition (line 218)

Create a CMS_linxCondition instance from a given DOMElement

  • return: The CMS_linxCondition instance
  • access: public
static CMS_linxNodespec createCondition (DOMElement $tag)
  • DOMElement $tag: The DOMElement to convert
Constructor __construct (line 82)

Constructor.

initializes the linxCondition.

  • access: public
void __construct ( $tag, string $property, string $operator, string $tagContent)
  • string $property: The page property we're gonna test. Only a set of these are available here.
  • string $operator: The comparison operator serving to test the condition.
  • string $tagContent: The tag content.
  • $tag
levelPasses (line 160)

Test to see if a level passes the condition

  • return: true if the level passes the condition, false otherwise
  • access: public
boolean levelPasses (integer $level)
  • integer $level: The level to check
pagePasses (line 124)

Test to see if a page passes the condition

  • return: true if the page passes the condition, false otherwise
  • access: public
boolean pagePasses ( &$parsedPage,  &$page, boolean $publicTree, integer $rank, CMS_page $page)
  • CMS_page $page: The page to test
  • boolean $publicTree: Is the test conducted inside the public or edited tree ?
  • integer $rank: The rank of the page in the pre-condition targets
  • &$parsedPage
  • &$page
_getPageProperty (line 185)

Get the page property specified

  • return: The property value
  • access: private
mixed _getPageProperty ( &$page, string $property, boolean $public, CMS_page $page)
  • CMS_page $page: The page we want the property of
  • string $property: The property we want
  • boolean $public: Do we want the public or edited property ?
  • &$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:42 +0100 by phpDocumentor 1.4.3