Docs For Class CreateLink

## Class CreateLink

Description

Create links using text strings

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

Located in /CreateLink.inc (line 29)

    CreateElement
       |
       --CreateLink

Method Summary
static CreateLink getInstance ()
CreateLink __construct ()
void __destruct ()
void createEmbeddedLink ()
void createLink (string $arrArgs[0], string $arrArgs[1], string $arrArgs[2])
void generateFLDCHAR (string $fldCharType)
void generateHYPERLINK (string $type)
void generateINSTRTEXT ([ $link = 'http://localhost'], string $link.)
void generatePROOFERR (string $type)
void generateR ()
void generateRSTYLE (string $val)
string getFont ()
string getLink ()
string getTitle ()
void initLink (string $arrArgs[0]['title'], string $arrArgs[0]['link'], string $arrArgs[0]['font'])
string __toString ()
Variables

#### Inherited Variables

Inherited from CreateElement

> CreateElement::$_xml

Methods
static method getInstance (line 95)

Singleton, return instance of class

- access: public

static CreateLink getInstance ()
Constructor __construct (line 62)

Construct

- access: public

CreateLink __construct ()

Redefinition of:

CreateElement::__construct()
  Construct

Destructor __destruct (line 72)

Destruct

- access: public

void __destruct ()

Redefinition of:

CreateElement::__destruct()
  Destruct

createEmbeddedLink (line 141)

Create an embedded link to add in others elements like lists, tables...

- access: public

void createEmbeddedLink ()
createLink (line 170)

Create a link

- access: public

void createLink (string $arrArgs[0], string $arrArgs[1], string $arrArgs[2])

- string $arrArgs[0]: Text to add
- string $arrArgs[1]: URL to add
- string $arrArgs[2]: RFONTS

generateFLDCHAR (line 226)

Generate w:fldChar

- access: protected

void generateFLDCHAR (string $fldCharType)

- string $fldCharType

generateHYPERLINK (line 241)

Generate w:hyperlink

- access: protected

void generateHYPERLINK (string $type)

- string $type

generateINSTRTEXT (line 254)

Generate w:instrText

- access: protected

void generateINSTRTEXT ([ $link = 'http://localhost'], string $link.)

- string $link.: Optional, use http://localhost as default
- $link

generatePROOFERR (line 269)

Generate w:proofErr

- access: protected

void generatePROOFERR (string $type)

- string $type

generateR (line 283)

Generate w:r

- access: protected

void generateR ()

Redefinition of:

CreateElement::generateR()
  Generate w:r

generateRSTYLE (line 308)

Generate w:rStyle

- access: protected

void generateRSTYLE (string $val)

- string $val

Redefinition of:

CreateElement::generateRSTYLE()
  Generate w:rstyle

getFont (line 131)

Getter. Access to font var

- access: public

string getFont ()
getLink (line 109)

Getter. Access to link var

- access: public

string getLink ()
getTitle (line 120)

Getter. Access to title var

- access: public

string getTitle ()
initLink (line 201)

Init a link to assign values to variables

- access: public

void initLink (string $arrArgs[0]['title'], string $arrArgs[0]['link'], string $arrArgs[0]['font'])

- string $arrArgs[0]['title']: Text to add
- string $arrArgs[0]['link']: URL to add
- string $arrArgs[0]['font']: RFONTS

__toString (line 83)

Magic method, returns current XML

- return: Return current XML
- access: public

string __toString ()

Redefinition of:

CreateElement::__toString()

#### Inherited Methods

Inherited From CreateElement

> CreateElement::__construct()
> CreateElement::cleanTemplate()
> CreateElement::cleanTemplateFirstRPR()
> CreateElement::generateALIGN()
> CreateElement::generateANCHOR()
> CreateElement::generateAVLST()
> CreateElement::generateB()
> CreateElement::generateBCS()
> CreateElement::generateBLIP()
> CreateElement::generateBLIPFILL()
> CreateElement::generateBR()
> CreateElement::generateCNVGRAPHICFRAMEPR()
> CreateElement::generateCNVPICPR()
> CreateElement::generateCNVPR()
> CreateElement::generateDOCPR()
> CreateElement::generateDRAWING()
> CreateElement::generateEFFECTEXTENT()
> CreateElement::generateEXT()
> CreateElement::generateEXTENT()
> CreateElement::generateFILLRECT()
> CreateElement::generateGRAPHIC()
> CreateElement::generateGRAPHICDATA()
> CreateElement::generateGRAPHICPRAMELOCKS()
> CreateElement::generateINLINE()
> CreateElement::generateJC()
> CreateElement::generateLINETO()
> CreateElement::generateLN()
> CreateElement::generateNOPROOF()
> CreateElement::generateNVPICPR()
> CreateElement::generateOFF()
> CreateElement::generateP()
> CreateElement::generatePIC()
> CreateElement::generatePICT()
> CreateElement::generatePOSITIONH()
> CreateElement::generatePOSITIONV()
> CreateElement::generatePOSOFFSET()
> CreateElement::generatePPR()
> CreateElement::generatePRSTDASH()
> CreateElement::generatePRSTGEOM()
> CreateElement::generatePSTYLE()
> CreateElement::generateQUITAR()
> CreateElement::generateR()
> CreateElement::generateRFONTS()
> CreateElement::generateRPR()
> CreateElement::generateRSTYLE()
> CreateElement::generateSCHEMECLR()
> CreateElement::generateSIMPLEPOS()
> CreateElement::generateSOLIDFILL()
> CreateElement::generateSPPR()
> CreateElement::generateSTART()
> CreateElement::generateSTRETCH()
> CreateElement::generateT()
> CreateElement::generateWRAPNONE()
> CreateElement::generateWRAPPOLYGON()
> CreateElement::generateWRAPSQUARE()
> CreateElement::generateWRAPTHROUGH()
> CreateElement::generateWRAPTOPANDBOTTOM()
> CreateElement::generateXFRM()
> CreateElement::__destruct()
> CreateElement::__toString()

Class Constants

#### Inherited Constants

Inherited from CreateElement

> CreateElement::MATHNAMESPACEWORD
> CreateElement::NAMESPACEWORD

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