Docs For Class CreateElement

## Class CreateElement

Description

Create tag elements

- version: 2011.19.03
- copyright: Copyright (c) 2009-2013 Narcea Producciones Multimedia S.L. (http://www.2mdc.com)
- link: http://www.phpdocx.com
- since: File available since Release 1.0
- license: http://www.phpdocx.com/wp-content/themes/lightword/pro_license.php

Located in /CreateElement.inc (line 16)

Direct descendents

Class | Description
--- | ---
CreateLink | Create links using text strings
CreateMath | Add a math eq. Using OOMML or MathML
CreateEmbeddedElement | Create embedded elements
CreateChartRels | Create relationships used by images, charts...
CreateXlsx | Create XLSX
CreateSettings | Create default settings
CreateFontTable | Create font table
CreatePage | Create tag elements
CreateTable | Create tag elements
CreateHeader | Create header
CreateImage | Create tag elements
CreateGraphic | Create tag elements
CreateFooter | Create footer
CreateStyle | Create styles
WordML | Create tag elements
CreateText | Create tag elements
CreateWebSettings | Create default websettings XML
CreateTheme1 |
CreateList | Create tag elements

Class Constant Summary
MATHNAMESPACEWORD = 'm'
NAMESPACEWORD = 'w'
Variable Summary
string $_xml
Method Summary
CreateElement __construct ()
void __destruct ()
void cleanTemplate ()
void cleanTemplateFirstRPR ()
void generateALIGN (string $align)
void generateANCHOR ([string $behindDoc = 0], [string $distT = '0'], [string $distB = '0'], [string $distL = '0'], [string $distR = '0'], [int $simplePos = 0], [string $relativeHeight = '0'], [string $locked = 0], [string $layoutInCell = 1], [string $allowOverlap = 1])
void generateAVLST ()
void generateB ([string $val = 'off'])
void generateBCS ()
void generateBLIP ([string $cstate = 'print'])
void generateBLIPFILL ()
void generateBR ([string $type = ''])
void generateCNVGRAPHICFRAMEPR ()
void generateCNVPICPR ()
void generateCNVPR ([string $id = '0'])
void generateDOCPR ([string $id = "1"], [string $name = "0 Imagen"])
void generateDRAWING ()
void generateEFFECTEXTENT ([string $l = "19050"], [string $t = "0"], [string $r = "4307"], [string $b = "0"])
void generateEXT ([string $cx = '2997226'], [string $cy = '2247918'])
void generateEXTENT ([string $cx = '2986543'], [string $cy = '2239906'])
void generateFILLRECT ()
void generateGRAPHIC ([string $xmlns = 'http://schemas.openxmlformats.org/drawingml/2006/main'])
void generateGRAPHICDATA ([string $uri = 'http://schemas.openxmlformats.org/drawingml/2006/picture'])
void generateGRAPHICPRAMELOCKS ([string $noChangeAspect = ''])
void generateINLINE ([string $distT = '0'], [string $distB = '0'], [string $distL = '0'], [string $distR = '0'])
void generateJC ([string $val = ''])
void generateLINETO ([string $x = '-198'], [string $y = '21342'])
void generateLN ([string $w = '12700'])
void generateNOPROOF ()
void generateNVPICPR ()
void generateOFF ([string $x = '0'], [string $y = '0'])
void generateP ()
void generatePIC ([string $pic = 'http://schemas.openxmlformats.org/drawingml/2006/picture'])
void generatePICT ()
void generatePOSITIONH ([string $relativeFrom = 'margin'])
void generatePOSITIONV ([string $relativeFrom = 'line'])
void generatePOSOFFSET (int $num)
void generatePPR ()
void generatePRSTDASH ([string $val = 'sysDash'])
void generatePRSTGEOM ([string $prst = 'rect'])
void generatePSTYLE ([string $val = 'Textonotaalfinal'])
void generateQUITAR ()
void generateR ()
void generateRFONTS (string $font)
void generateRPR ()
void generateRSTYLE ([string $val = 'PHPDOCXFootnoteReference'])
void generateSCHEMECLR ([string $val = 'tx1'])
void generateSIMPLEPOS ([string $x = '0'], [string $y = '0'])
void generateSOLIDFILL ()
void generateSPPR ()
void generateSTART ([string $x = '-198'], [string $y = '0'])
void generateSTRETCH ()
void generateT (string $dat)
void generateWRAPNONE ()
void generateWRAPPOLYGON ([string $edited = '0'])
void generateWRAPSQUARE ([string $wrapText = "bothSides"])
void generateWRAPTHROUGH ([string $wrapText = 'bothSides'])
void generateWRAPTOPANDBOTTOM ()
void generateXFRM ()
string __toString ()
Variables
string $_xml (line 26)

- access: protected

Redefined in descendants as:

- CreateChartRels::$_xml
- CreateSettings::$_xml
- CreateFontTable::$_xml
- CreatePage::$_xml
- CreateStyle::$_xml
- CreateStyleTable::$_xml
- CreateWebSettings::$_xml
- CreateTheme1::$_xml

Methods
Constructor __construct (line 33)

Construct

- access: public

CreateElement __construct ()

Redefined in descendants as:

- CreateLink::__construct() : Construct
- CreateMath::__construct() : Construct
- CreateEmbeddedElement::__construct() : Construct
- CreateChartRels::__construct() : Construct
- CreateXlsx::__construct() : Construct
- CreateSettings::__construct() : Construct
- CreateFontTable::__construct() : Construct
- CreatePage::__construct() : Construct
- CreateTable::__construct() : Construct
- CreateHeader::__construct() : Construct
- CreateImage::__construct() : Construct
- CreateGraphic::__construct() : Construct
- CreateFooter::__construct() : Construct
- CreateStyle::__construct() : Construct
- CreateStyleTable::__construct() : Construct
- WordML::__construct() : Construct
- CreateText::__construct() : Construct
- CreateWebSettings::__construct() : Construct
- CreateTheme1::__construct() : Construct
- CreateList::__construct() : Construct

Destructor __destruct (line 43)

Destruct

- access: public

void __destruct ()

Redefined in descendants as:

- CreateLink::__destruct() : Destruct
- CreateMath::__destruct() : Destruct
- CreateChartRels::__destruct() : Destruct
- CreateXlsx::__destruct() : Destruct
- CreateSettings::__destruct() : Destruct
- CreateFontTable::__destruct() : Destruct
- CreatePage::__destruct() : Destruct
- CreateTable::__destruct() : Destruct
- CreateHeader::__destruct() : Destruct
- CreateImage::__destruct() : Destruct
- CreateGraphic::__destruct() : Destruct
- CreateFooter::__destruct() : Destruct
- CreateStyle::__destruct() : Destruct
- CreateStyleTable::__destruct() : Destruct
- WordML::__destruct() : Destruct
- CreateText::__destruct() : Destruct
- CreateWebSettings::__destruct() : Destruct
- CreateTheme1::__destruct() : Destruct
- CreateList::__destruct() : Destruct

cleanTemplate (line 63)

Delete pending tags

- access: protected

void cleanTemplate ()
cleanTemplateFirstRPR (line 73)

Delete first w:rpr

- access: protected

void cleanTemplateFirstRPR ()
generateALIGN (line 84)

Generate w:align

- access: protected

void generateALIGN (string $align)

- string $align

generateANCHOR (line 108)

Generate w:anchor

- access: protected

void generateANCHOR ([string $behindDoc = 0], [string $distT = '0'], [string $distB = '0'], [string $distL = '0'], [string $distR = '0'], [int $simplePos = 0], [string $relativeHeight = '0'], [string $locked = 0], [string $layoutInCell = 1], [string $allowOverlap = 1])

- string $behindDoc
- string $distT
- string $distB
- string $distL
- string $distR
- int $simplePos
- string $relativeHeight
- string $locked
- string $layoutInCell
- string $allowOverlap

generateAVLST (line 134)

Generate w:avlst

- access: protected

void generateAVLST ()
generateB (line 149)

Generate w:b

- access: protected

void generateB ([string $val = 'off'])

- string $val

Redefined in descendants as:

- CreateStyle::generateB() : Generate w:b

generateBCS (line 167)

Generate w:bcs

- access: protected

void generateBCS ()

Redefined in descendants as:

- CreateStyle::generateBCS() : Generate w:bcs

generateBLIP (line 182)

Generate w:blip

- access: protected

void generateBLIP ([string $cstate = 'print'])

- string $cstate

generateBLIPFILL (line 198)

Generate w:blipfill

- access: protected

void generateBLIPFILL ()
generateBR (line 213)

Generate w:br

- access: protected

void generateBR ([string $type = ''])

- string $type

Redefined in descendants as:

- CreatePage::generateBR() : Generate w:br

generateCNVGRAPHICFRAMEPR (line 226)

Generate w:cnvgraphicframepr

- access: protected

void generateCNVGRAPHICFRAMEPR ()
generateCNVPICPR (line 241)

Generate w:cnvpicpr

- access: protected

void generateCNVPICPR ()
generateCNVPR (line 256)

Generate w:cnvpr

- access: protected

void generateCNVPR ([string $id = '0'])

- string $id

generateDOCPR (line 273)

Generate w:docpr

- access: protected

void generateDOCPR ([string $id = "1"], [string $name = "0 Imagen"])

- string $id
- string $name

generateDRAWING (line 288)

Generate w:drawing

- access: protected

void generateDRAWING ()
generateEFFECTEXTENT (line 307)

Generate w:effectextent

- access: protected

void generateEFFECTEXTENT ([string $l = "19050"], [string $t = "0"], [string $r = "4307"], [string $b = "0"])

- string $l
- string $t
- string $r
- string $b

generateEXT (line 325)

Generate w:ext

- access: protected

void generateEXT ([string $cx = '2997226'], [string $cy = '2247918'])

- string $cx
- string $cy

generateEXTENT (line 342)

Generate w:extent

- access: protected

void generateEXTENT ([string $cx = '2986543'], [string $cy = '2239906'])

- string $cx
- string $cy

generateFILLRECT (line 356)

Generate w:fillrect

- access: protected

void generateFILLRECT ()
generateGRAPHIC (line 371)

Generate w:graphic

- access: protected

void generateGRAPHIC ([string $xmlns = 'http://schemas.openxmlformats.org/drawingml/2006/main'])

- string $xmlns

generateGRAPHICDATA (line 409)

Generate w:graphicdata

- access: protected

void generateGRAPHICDATA ([string $uri = 'http://schemas.openxmlformats.org/drawingml/2006/picture'])

- string $uri

generateGRAPHICPRAMELOCKS (line 388)

Generate w:graphicpframelocks

- access: protected

void generateGRAPHICPRAMELOCKS ([string $noChangeAspect = ''])

- string $noChangeAspect

generateINLINE (line 429)

Generate w:inline

- access: protected

void generateINLINE ([string $distT = '0'], [string $distB = '0'], [string $distL = '0'], [string $distR = '0'])

- string $distT
- string $distB
- string $distL
- string $distR

generateJC (line 447)

Generate w:jc

- access: protected

void generateJC ([string $val = ''])

- string $val

Redefined in descendants as:

- CreateTable::generateJC() : Generate w:jc
- CreateText::generateJC() : Generate w:jc

generateLINETO (line 463)

Generate w:lineto

- access: protected

void generateLINETO ([string $x = '-198'], [string $y = '21342'])

- string $x
- string $y

generateLN (line 479)

Generate w:ln

- access: protected

void generateLN ([string $w = '12700'])

- string $w

Redefined in descendants as:

- CreateGraphic::generateLN() : Generate w:ln
- CreateTheme1::generateLN() : Generate a:ln

generateNOPROOF (line 494)

Generate w:noproof

- access: protected

void generateNOPROOF ()
generateNVPICPR (line 508)

Generate w:nvpicpr

- access: protected

void generateNVPICPR ()
generateOFF (line 524)

Generate w:off

- access: protected

void generateOFF ([string $x = '0'], [string $y = '0'])

- string $x
- string $y

generateP (line 539)

Generate w:p

- access: protected

void generateP ()

Redefined in descendants as:

- CreateTable::generateP() : Generate w:p
- CreateHeader::generateP() : Generate w:p
- CreateFooter::generateP() : Generate w:p

generatePIC (line 552)

Generate w:pic

- access: protected

void generatePIC ([string $pic = 'http://schemas.openxmlformats.org/drawingml/2006/picture'])

- string $pic

generatePICT (line 568)

Generate w:pict

- access: protected

void generatePICT ()
generatePOSITIONH (line 583)

Generate w:positionh

- access: protected

void generatePOSITIONH ([string $relativeFrom = 'margin'])

- string $relativeFrom

generatePOSITIONV (line 599)

Generate w:positionv

- access: protected

void generatePOSITIONV ([string $relativeFrom = 'line'])

- string $relativeFrom

generatePOSOFFSET (line 615)

Generate w:posoffset

- access: protected

void generatePOSOFFSET (int $num)

- int $num

generatePPR (line 628)

Generate w:ppr

- access: protected

void generatePPR ()

Redefined in descendants as:

- CreateStyle::generatePPR() : Generate w:ppr
- CreateText::generatePPR() : Generate w:ppr

generatePRSTDASH (line 642)

Generate w:prstdash

- access: protected

void generatePRSTDASH ([string $val = 'sysDash'])

- string $val

Redefined in descendants as:

- CreateTheme1::generatePRSTDASH() : Generate a:prstdash

generatePRSTGEOM (line 657)

Generate w:prstgeom

- access: protected

void generatePRSTGEOM ([string $prst = 'rect'])

- string $prst

generatePSTYLE (line 673)

Generate w:pstyle

- access: protected

void generatePSTYLE ([string $val = 'Textonotaalfinal'])

- string $val

Redefined in descendants as:

- CreateText::generatePSTYLE() : Generate w:pstyle
- CreateList::generatePSTYLE() : Generate w:pstyle

generateQUITAR (line 688)

Generate w:r

- access: protected

void generateQUITAR ()
generateR (line 700)

Generate w:r

- access: protected

void generateR ()

Redefined in descendants as:

- CreateLink::generateR() : Generate w:r
- CreateFooter::generateR() : Generate w:r

generateRFONTS (line 737)

Generate w:rfonts

- access: protected

void generateRFONTS (string $font)

- string $font

Redefined in descendants as:

- CreateGraphic::generateRFONTS() : Generate w:latin
- CreateStyle::generateRFONTS() : Generate w:rfonts

generateRPR (line 754)

Generate w:rpr

- access: protected

void generateRPR ()

Redefined in descendants as:

- CreateStyle::generateRPR() : Generate w:rpr

generateRSTYLE (line 769)

Generate w:rstyle

- access: protected

void generateRSTYLE ([string $val = 'PHPDOCXFootnoteReference'])

- string $val

Redefined in descendants as:

- CreateLink::generateRSTYLE() : Generate w:rStyle

generateSCHEMECLR (line 786)

Generate w:schemeclr

- access: protected

void generateSCHEMECLR ([string $val = 'tx1'])

- string $val

Redefined in descendants as:

- CreateTheme1::generateSCHEMECLR() : Generate a:schemeclr

generateSIMPLEPOS (line 801)

Generate w:simplepos

- access: protected

void generateSIMPLEPOS ([string $x = '0'], [string $y = '0'])

- string $x
- string $y

generateSOLIDFILL (line 816)

Generate w:solidfill

- access: protected

void generateSOLIDFILL ()

Redefined in descendants as:

- CreateTheme1::generateSOLIDFILL() : Generate a:solidfill

generateSPPR (line 830)

Generate w:sppr

- access: protected

void generateSPPR ()

Redefined in descendants as:

- CreateGraphic::generateSPPR() : Generate w:spPr

generateSTART (line 846)

Generate w:start

- access: protected

void generateSTART ([string $x = '-198'], [string $y = '0'])

- string $x
- string $y

Redefined in descendants as:

- CreateList::generateSTART() : Generate w:start

generateSTRETCH (line 862)

Generate w:stretch

- access: protected

void generateSTRETCH ()
generateT (line 877)

Generate w:t

- access: protected

void generateT (string $dat)

- string $dat

Redefined in descendants as:

- CreateXlsx::generateT() : Generate t
- CreateText::generateT() : Generate w:t

generateWRAPNONE (line 890)

Generate w:wrapnone

- access: protected

void generateWRAPNONE ()
generateWRAPPOLYGON (line 905)

Generate w:wrappolygon

- access: protected

void generateWRAPPOLYGON ([string $edited = '0'])

- string $edited

generateWRAPSQUARE (line 921)

Generate w:wrapsquare

- access: protected

void generateWRAPSQUARE ([string $wrapText = "bothSides"])

- string $wrapText

generateWRAPTHROUGH (line 937)

Generate w:wrapthrough

- access: protected

void generateWRAPTHROUGH ([string $wrapText = 'bothSides'])

- string $wrapText

generateWRAPTOPANDBOTTOM (line 952)

Generate w:wraptopandbottom

- access: protected

void generateWRAPTOPANDBOTTOM ()
generateXFRM (line 966)

Generate w:xfrm

- access: protected

void generateXFRM ()
__toString (line 53)

- access: public

string __toString ()

Redefined in descendants as:

- CreateLink::__toString() : Magic method, returns current XML
- CreateMath::__toString() : Magic method, returns current MathML
- CreateEmbeddedElement::__toString()
- CreateChartRels::__toString() : Magic method, returns current XML
- CreateXlsx::__toString()
- CreateSettings::__toString() : Magic method, returns current XML
- CreateFontTable::__toString()
- CreatePage::__toString()
- CreateTable::__toString()
- CreateHeader::__toString()
- CreateImage::__toString()
- CreateGraphic::__toString()
- CreateFooter::__toString()
- CreateStyle::__toString()
- CreateStyleTable::__toString()
- WordML::__toString() : Magic method, returns current XML
- CreateText::__toString() : Magic method, returns current XML
- CreateWebSettings::__toString() : Magic method, returns current XML
- CreateTheme1::__toString()
- CreateList::__toString()

Class Constants
MATHNAMESPACEWORD = 'm' (line 18)
NAMESPACEWORD = 'w' (line 19)

Documentation generated on Tue, 21 May 2013 17:19:47 +0200 by phpDocumentor 1.4.4