Constructor.
initializes the linxDisplay.
void
__construct
( $tag, string $tagContent)
-
string
$tagContent: The tag content.
-
$tag
Get the HTML display for a page, if it passes the condition of course.
string
getOutput
(
&$parsedPage,
&$page,
boolean $public,
integer $rank, [
boolean $noerror =
false], [
$noselection =
false],
CMS_page $parsedPage,
CMS_page $page)
-
CMS_page
$parsedPage: The page in which the linx tag is
-
CMS_page
$page: The page to get the display of
-
boolean
$public: Is the page data to show the public or edited one ?
-
integer
$rank: The rank of the page in the linx targets
-
boolean
$noerror: : Hide all link error (default : false)
-
&$parsedPage
-
&$page
-
$noselection
Get the recursive HTML display for a recursivelinks, if it passes the condition of course.
string
getRecursiveOutput
(
&$parsedPage, [
integer $level =
0],
multidimentionnal $recursiveTree,
&$pages,
boolean $public, [
array $lineage =
array()],
CMS_page $parsedPage,
array $pages)
-
CMS_page
$parsedPage: The page in which the linx tag is
-
integer
$level: The current level of recursivity
-
array
$pages: array of pages objects (indexed by id)
-
boolean
$public: Is the page data to show the public or edited one ?
-
array
$lineage: The lineage of the pages (used to see wich recursions need to be done in closed link display mode)
-
multidimentionnal
$recursiveTree: array $recursiveTree The tree to display
-
&$parsedPage
-
&$pages
Surround the HTML output by sublevel template if any.
string
getSubLevelOutput
(string $html)
-
string
$html: The html to surround by sublevel html
Does the display has a condition ?
boolean
hasCondition
()
Test to see if a page passes all conditions
boolean
pagePassesConditions
(
&$parsedPage,
&$page,
$public,
integer $rank,
CMS_page $page,
boolean $publicTree)
-
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
-
$public
add slash arround all php content founded in string.
Static function
string
_addSlashAroundPHPContent
($html $html)
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()