Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
OOoLayout Class Reference
+ Inheritance diagram for OOoLayout:
+ Collaboration diagram for OOoLayout:

Public Member Functions

 __construct ($caneva="", Action &$action=null, Doc &$doc=null)
 
 innerXML (DOMnode &$node)
 
 parseListInBlock ($block, $aid, $vkey)
 
 getAncestor (&$node, $type)
 
 ParseBlock ()
 
 TestIf ($name, $block, $not=false, $levelPath=null)
 
 ParseIf ()
 
 SetBlock ($name, $block)
 
 ParseZone (&$out)
 
 ParseKey ()
 
 odf2content ($odtfile)
 
 content2odf ($odsfile)
 
 execute ($appname, $actionargn)
 
 set ($tag, $val)
 
 eSet ($tag, $val)
 
 isXML ($val)
 
 get ($tag)
 
 setColumn ($key, array $t)
 
 SetBlockData ($p_nom_block, $data)
 
 setrepeatable (array $data)
 
 GenJsRef ()
 
 GenJsCode ($showlog)
 
 ParseJs (&$out)
 
 GenCssRef ()
 
 GenCssCode ()
 
 ParseCss (&$out)
 
 parseHtmlText ()
 
 gen ()
 
- Public Member Functions inherited from Layout
 Layout ($caneva="", $action="", $template="[OUT]")
 
 getZone ($key= '')
 
 setZone ($zone)
 
 SetBlockCorresp ($p_nom_block, $p_nom_modele, $p_nom=NULL)
 
 SetBlockData ($p_nom_block, $data=NULL)
 
 GetBlockData ($p_nom_block)
 
 SetBlock ($name, $block)
 
 ParseBlock (&$out)
 
 TestIf ($name, $block, $not=false)
 
 ParseIf (&$out)
 
 ParseZone (&$out)
 
 ParseKey (&$out)
 
 setEncoding ($enc)
 
 execute ($appname, $actionargn)
 
 set ($tag, $val)
 
 get ($tag)
 
 ParseRef (&$out)
 
 Text ($s)
 
 GenJsRef ()
 
 GenJsCode ($showlog, $onlylog=false)
 
 ParseJs (&$out)
 
 GenCssRef ()
 
 GenCssCode ()
 
 ParseCss (&$out)
 
 gen ()
 
 getRecursionCount ($class, $function)
 
 printRecursionCountError ($class, $function, $count)
 

Static Public Member Functions

static xmlEntities ($s)
 

Data Fields

 $encoding = "utf-8"
 
 $content_template = ''
 
 $style_template = ''
 
 $meta_template = ''
 
 $template = ''
 
 $manifest = ''
 
- Data Fields inherited from Layout
 $encoding = ""
 
 $noparse = false
 

Protected Member Functions

 hideUserFieldSet ()
 
 restoreUserFieldSet ()
 
 ParseText ()
 
 updateManifest ()
 
 setDraw (DOMNode &$draw, $name, $file)
 
 parseDraw ()
 
 removeXmlId (&$objNode)
 
 replaceNodeText (DOMNode &$objNode, $strOldContent, $strNewContent)
 
 parseListItem ()
 
 parseSection ()
 
 setInputField (DOMNode &$node, $name, $value)
 
 setDropDownField (DOMNode &$node, $name, $value)
 
 removeAllChilds (DOMNode &$objNode)
 
 parseTableRow ()
 
 getArrayKeyValue ($key, array $levelPath)
 
 replaceRowIf (DOMNode &$row, array $levelPath)
 
 replaceRowNode (DOMNode &$row, array $levelPath)
 
 replaceRowSomething (DOMNode &$row, array $levelPath, $ns, $tag, $recursive)
 
 parseInput ()
 
 parseDropDown ()
 
 restoreProtectedValues ()
 
 parseTplSection ()
 
 restoreSection ()
 
 setArray ($key, array $t)
 
 addHTMLStyle ()
 
 removeOrphanImages ()
 
 genStyle ()
 
 genMeta ()
 
 genContent ()
 
- Protected Member Functions inherited from Layout
 ParseText (&$out)
 

Protected Attributes

 $arrayKeys = array()
 
 $arrayMainKeys = array()
 

Detailed Description

Definition at line 22 of file Class.OOoLayout.php.

Constructor & Destructor Documentation

__construct (   $caneva = "",
Action $action = null,
Doc $doc = null 
)

construct layout for view card containt

Parameters
string$canevafile of the template
Action$actioncurrent action
Doc$docdocument

Definition at line 51 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

Member Function Documentation

addHTMLStyle ( )
protected

Definition at line 1307 of file Class.OOoLayout.php.

content2odf (   $odsfile)

recompose odt file

Parameters
string$odsfileoutput file path

Definition at line 412 of file Class.OOoLayout.php.

eSet (   $tag,
  $val 
)

set key/value pair and XML entity encode

Parameters
string$tagthe key to replace
string$valthe value for the key

Definition at line 521 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

execute (   $appname,
  $actionargn 
)

Definition at line 449 of file Class.OOoLayout.php.

gen ( )

generate OOo document

Definition at line 1547 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

genContent ( )
protected

generate OOo document content

Definition at line 1493 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

GenCssCode ( )

Definition at line 1366 of file Class.OOoLayout.php.

GenCssRef ( )

Definition at line 1362 of file Class.OOoLayout.php.

GenJsCode (   $showlog)

Definition at line 1355 of file Class.OOoLayout.php.

GenJsRef ( )

Definition at line 1351 of file Class.OOoLayout.php.

genMeta ( )
protected

generate OOo document meta part

Definition at line 1399 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

genStyle ( )
protected

generate OOo document style part

Definition at line 1376 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

get (   $tag)

get value of $tag key

Parameters
string$tag

Definition at line 554 of file Class.OOoLayout.php.

getAncestor ( $node,
  $type 
)

Definition at line 146 of file Class.OOoLayout.php.

getArrayKeyValue (   $key,
array  $levelPath 
)
protected

Retrieve one of values for a multi value key

Parameters
string$keythe key name (multiple values)
array$levelPathpath to access of a particular value

Definition at line 941 of file Class.OOoLayout.php.

hideUserFieldSet ( )
protected

to not parse user fields set

Definition at line 256 of file Class.OOoLayout.php.

innerXML ( DOMnode &  $node)

Definition at line 76 of file Class.OOoLayout.php.

isXML (   $val)
Parameters
string$val

Definition at line 545 of file Class.OOoLayout.php.

odf2content (   $odtfile)

read odt file and insert xmls in object

Parameters
string$odsfilepath to the odt file

Definition at line 379 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

ParseBlock ( )

Definition at line 171 of file Class.OOoLayout.php.

ParseCss ( $out)

Definition at line 1370 of file Class.OOoLayout.php.

parseDraw ( )
protected

parse images

Definition at line 648 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

parseDropDown ( )
protected

parse text:drop-down

Definition at line 1098 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

parseHtmlText ( )

clean section done by htmltext values delete unecessary span or p delete section tag if needed (not in cell or text:section or text:body

Definition at line 1419 of file Class.OOoLayout.php.

ParseIf ( )

Top level parse condition

Definition at line 209 of file Class.OOoLayout.php.

parseInput ( )
protected

parse text:input

Definition at line 1082 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

ParseJs ( $out)

Definition at line 1359 of file Class.OOoLayout.php.

ParseKey ( )

replace simple key in xml string

Definition at line 351 of file Class.OOoLayout.php.

parseListInBlock (   $block,
  $aid,
  $vkey 
)
Deprecated:
Enter description here ...
Parameters
unknown_type$block
unknown_type$aid
unknown_type$vkey

Definition at line 91 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

parseListItem ( )
protected

parse bullet lists

Definition at line 723 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

parseSection ( )
protected

parse section repeat

Definition at line 766 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

parseTableRow ( )
protected

parse tables

Definition at line 878 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

ParseText ( )
protected

parse text

Definition at line 562 of file Class.OOoLayout.php.

parseTplSection ( )
protected

parse section and clone "tpl_xxx" sections into saved_sections

Definition at line 1123 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

ParseZone ( $out)

not use for the moment

Deprecated:
Parameters
$out

Definition at line 342 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

removeAllChilds ( DOMNode &  $objNode)
protected

remove all child nodes

Parameters
DomNode$objNode

Definition at line 865 of file Class.OOoLayout.php.

removeOrphanImages ( )
protected

Delete not used images (need when reuse template where repeat section)

Definition at line 1330 of file Class.OOoLayout.php.

removeXmlId ( $objNode)
protected

remove all xml:id attributes in children nodes

Parameters
DomNode$objNode

Definition at line 665 of file Class.OOoLayout.php.

replaceNodeText ( DOMNode &  $objNode,
  $strOldContent,
  $strNewContent 
)
protected

This function replaces a node's string content with strNewContent

Parameters
DomNode$objNode
string$strOldContent
string$strNewContent

Definition at line 681 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

replaceRowIf ( DOMNode &  $row,
array  $levelPath 
)
protected

Inspect conditions in cells

Parameters
string_type$row
array$levelPath

Definition at line 975 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

replaceRowNode ( DOMNode &  $row,
array  $levelPath 
)
protected

Inspect sub tables

Parameters
string_type$row
array$levelPath

Definition at line 1016 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

replaceRowSomething ( DOMNode &  $row,
array  $levelPath,
  $ns,
  $tag,
  $recursive 
)
protected

Inspect list in sub tables

Parameters
DOMNode$row
array$levelPath
string$nsnamespace for filter items (like text or table)
string$tagtag for filter (like table-row or list-item)
boolean$recursiverecursive mode

Definition at line 1034 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

restoreProtectedValues ( )
protected

restore protected values

Definition at line 1114 of file Class.OOoLayout.php.

restoreSection ( )
protected

restore cloned and saved sections at the end

Definition at line 1184 of file Class.OOoLayout.php.

restoreUserFieldSet ( )
protected

replace brackets

Definition at line 294 of file Class.OOoLayout.php.

set (   $tag,
  $val 
)

set key/value pair

Parameters
string$tagthe key to replace
string$valthe value for the key

Definition at line 504 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

setArray (   $key,
array  $t 
)
protected

Definition at line 1228 of file Class.OOoLayout.php.

SetBlock (   $name,
  $block 
)

not use for the moment

Deprecated:
Parameters
$name
$block

Definition at line 311 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

SetBlockData (   $p_nom_block,
  $data 
)
Deprecated:
Parameters
unknown_type$p_nom_block
unknown_type$data

Definition at line 1238 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

setColumn (   $key,
array  $t 
)

Initialize of list

Parameters
string$keythe key variable
array$tthe values of the key

Definition at line 1217 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

setDraw ( DOMNode &  $draw,
  $name,
  $file 
)
protected

set image

Parameters
DomNode$node
string$name
string$value

Definition at line 615 of file Class.OOoLayout.php.

setDropDownField ( DOMNode &  $node,
  $name,
  $value 
)
protected

modify a text:drop-down list

Parameters
DomNode$node
string$name
string$value

Definition at line 838 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

setInputField ( DOMNode &  $node,
  $name,
  $value 
)
protected

modify a text:input field value

Parameters
DomNode$node
string$name
string$value

Definition at line 823 of file Class.OOoLayout.php.

setrepeatable ( array  $data)

Definition at line 1276 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

TestIf (   $name,
  $block,
  $not = false,
  $levelPath = null 
)
Parameters
string$namename of the IF
string$blockxml string which containt the condition
boolean$notnegative condition
array$levelPathPath use to retrieve condition value in recursive repeatable mode

Definition at line 182 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

updateManifest ( )
protected

Definition at line 572 of file Class.OOoLayout.php.

+ Here is the call graph for this function:

static xmlEntities (   $s)
static

replace entities & < >

Parameters
string$stext to encode

Definition at line 529 of file Class.OOoLayout.php.

Field Documentation

$arrayKeys = array()
protected

Definition at line 42 of file Class.OOoLayout.php.

$arrayMainKeys = array()
protected

Definition at line 43 of file Class.OOoLayout.php.

$content_template = ''

Definition at line 36 of file Class.OOoLayout.php.

$encoding = "utf-8"

Definition at line 27 of file Class.OOoLayout.php.

$manifest = ''

Definition at line 40 of file Class.OOoLayout.php.

$meta_template = ''

Definition at line 38 of file Class.OOoLayout.php.

$style_template = ''

Definition at line 37 of file Class.OOoLayout.php.

$template = ''

Definition at line 39 of file Class.OOoLayout.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen - published under CC License - Dynacase