Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
DocOooFormat Class Reference
+ Collaboration diagram for DocOooFormat:

Public Member Functions

 __construct (Doc &$doc)
 
 setDoc (Doc &$doc)
 
 getOooValue ($oattr, $value, $index=-1)
 
 formatDefault ($avalue)
 
 formatIDoc ($avalue)
 
 formatImage ($avalue)
 
 formatFile ($avalue)
 
 formatLongtext ($avalue)
 
 formatPassword ($avalue)
 
 formatEnum ($avalue)
 
 formatArray ($avalue)
 
 formatDoc ($avalue)
 
 formatAccount ($avalue)
 
 formatDocid ($avalue)
 
 formatThesaurus ($avalue)
 
 formatOption ($avalue)
 
 formatMoney ($avalue)
 
 formatHtmltext ($avalue)
 
 formatDate ($avalue)
 
 formatTime ($avalue)
 
 formatTimestamp ($avalue)
 
 formatIfile ($avalue)
 
 formatColor ($avalue)
 

Static Public Member Functions

static xmlEncode ($s)
 

Data Fields

 $doc = null
 

Protected Member Functions

 _fixupStyle ($lt, $tag, $attr, $gt)
 
 cleanhtml ($html)
 
 parseInlineStyle ($str)
 

Detailed Description

Get OpenText Value for document

Definition at line 11 of file Class.DocOooFormat.php.

Constructor & Destructor Documentation

__construct ( Doc $doc)

Definition at line 29 of file Class.DocOooFormat.php.

+ Here is the call graph for this function:

Member Function Documentation

_fixupStyle (   $lt,
  $tag,
  $attr,
  $gt 
)
protected

function use by Doc::getOOoValue() use to convert html to xhtml

Parameters
string$ltthe < character
string$tagthe tag name
string$attrall attributes of tag
string$gtthe > tag
Returns
string the new tag

Definition at line 527 of file Class.DocOooFormat.php.

+ Here is the call graph for this function:

cleanhtml (   $html)
protected

Definition at line 580 of file Class.DocOooFormat.php.

formatAccount (   $avalue)

format Account attribute

Parameters
$avalue
Returns
string HTML value

Definition at line 330 of file Class.DocOooFormat.php.

+ Here is the call graph for this function:

formatArray (   $avalue)

format Image attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value
Parameters
$avaluePhpUnusedParameterInspection

Definition at line 303 of file Class.DocOooFormat.php.

formatColor (   $avalue)

format Color attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 673 of file Class.DocOooFormat.php.

formatDate (   $avalue)

format Date attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 596 of file Class.DocOooFormat.php.

+ Here is the call graph for this function:

formatDefault (   $avalue)

format Default attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 170 of file Class.DocOooFormat.php.

+ Here is the call graph for this function:

formatDoc (   $avalue)

format Doc attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value
Parameters
$avaluePhpUnusedParameterInspection

Definition at line 317 of file Class.DocOooFormat.php.

formatDocid (   $avalue)

format Docid attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 341 of file Class.DocOooFormat.php.

+ Here is the call graph for this function:

formatEnum (   $avalue)

format Image attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 274 of file Class.DocOooFormat.php.

formatFile (   $avalue)

format File attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 226 of file Class.DocOooFormat.php.

formatHtmltext (   $avalue)

format Htmltext attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 437 of file Class.DocOooFormat.php.

+ Here is the call graph for this function:

formatIDoc (   $avalue)

format Idoc attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value
Parameters
$avaluePhpUnusedParameterInspection

Definition at line 197 of file Class.DocOooFormat.php.

formatIfile (   $avalue)

format iFile attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value
Parameters
$avaluePhpUnusedParameterInspection

Definition at line 655 of file Class.DocOooFormat.php.

formatImage (   $avalue)

format Image attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 213 of file Class.DocOooFormat.php.

formatLongtext (   $avalue)

format Longtext attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 238 of file Class.DocOooFormat.php.

formatMoney (   $avalue)

format Money attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 425 of file Class.DocOooFormat.php.

formatOption (   $avalue)

format Option attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value
Parameters
$avaluePhpUnusedParameterInspection

Definition at line 411 of file Class.DocOooFormat.php.

formatPassword (   $avalue)

format Image attribute

Parameters
string$avalueraw value of attribute
Returns
string
Parameters
$avaluePhpUnusedParameterInspection

Definition at line 260 of file Class.DocOooFormat.php.

formatThesaurus (   $avalue)

format Thesaurus attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 377 of file Class.DocOooFormat.php.

formatTime (   $avalue)

format Time attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 616 of file Class.DocOooFormat.php.

formatTimestamp (   $avalue)

format TimeStamp attribute

Parameters
string$avalueraw value of attribute
Returns
string openText value

Definition at line 635 of file Class.DocOooFormat.php.

+ Here is the call graph for this function:

getOooValue (   $oattr,
  $value,
  $index = - 1 
)
Parameters
NormalAttribute$oattr
string$value
int$index
Returns
string the formated value

Definition at line 44 of file Class.DocOooFormat.php.

+ Here is the call graph for this function:

parseInlineStyle (   $str)
protected

Basic inline style CSS parser

Parse the value of a style="..." attribute and return a hash containing the property-names => property-values.

Parameters
$str
Returns
array hash of property-name => property-value

Definition at line 688 of file Class.DocOooFormat.php.

setDoc ( Doc $doc)

Definition at line 34 of file Class.DocOooFormat.php.

static xmlEncode (   $s)
static

Definition at line 177 of file Class.DocOooFormat.php.

Field Documentation

$doc = null

Definition at line 16 of file Class.DocOooFormat.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen