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

Public Member Functions

 __construct (Doc &$doc)
 
 setDoc (Doc &$doc)
 
 useTd ($usetd)
 
 setJsEvents ($jsEvent)
 
 getHtmlInput (&$oattr, $value, $index="")
 
 elinkEncode (&$doc, $attrik, $link, $index, &$ititle="", &$isymbol="")
 
 getLayArray (&$lay, &$doc, &$oattr, $row=-1)
 
 sortEnumMap ($enumMap, $sortBy)
 

Static Public Member Functions

static rowattrReplace (&$doc, $s, $index, &$defval=null)
 

Data Fields

 $doc = null
 
const arrayIndex = '__1x_'
 

Detailed Description

Get Html form inputs for documents

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

Constructor & Destructor Documentation

__construct ( Doc $doc)

Definition at line 69 of file Class.DocFormFormat.php.

+ Here is the call graph for this function:

Member Function Documentation

elinkEncode ( $doc,
  $attrik,
  $link,
  $index,
$ititle = "",
$isymbol = "" 
)
Parameters
Doc$doc
string$attrik
string$link
int$index
string$ititle
string$isymbol
Returns
string

Definition at line 1071 of file Class.DocFormFormat.php.

+ Here is the call graph for this function:

getHtmlInput ( $oattr,
  $value,
  $index = "" 
)

Compose html code to insert input

Parameters
NormalAttribute&$oattrattribute to edit
string$valuevalue of the attribute
string$indexin case of array : row of the array
Returns
mixed|string

PhpDeprecationInspection only for very old compatibility

Definition at line 101 of file Class.DocFormFormat.php.

+ Here is the call graph for this function:

getLayArray ( $lay,
$doc,
$oattr,
  $row = - 1 
)
Parameters
Layout$lay
Doc$doc
NormalAttribute$oattr
int$row

Definition at line 1173 of file Class.DocFormFormat.php.

+ Here is the call graph for this function:

static rowattrReplace ( $doc,
  $s,
  $index,
$defval = null 
)
static
Parameters
Doc$doc
string$s
int$index
string$defval
Returns
array|mixed|string

Definition at line 1569 of file Class.DocFormFormat.php.

+ Here is the call graph for this function:

setDoc ( Doc $doc)

Definition at line 74 of file Class.DocFormFormat.php.

setJsEvents (   $jsEvent)

add some js handler un input like onmouseover="alert('foo')"

Parameters
string$jsEvent

Definition at line 90 of file Class.DocFormFormat.php.

sortEnumMap (   $enumMap,
  $sortBy 
)

Sort an enum's (key => label) mapping structure by 'key' or 'label'.

Parameters
array$enumMapan enum mapping structure as returned by NormalAttribute::getEnumLabel() method
string$sortBy'key' to sort by key, 'label' to sort by label
Returns
array the sorted enum's mapping structure

Definition at line 1928 of file Class.DocFormFormat.php.

useTd (   $usetd)

add TD HTML tag between input and button

Parameters
bool$usetd

Definition at line 82 of file Class.DocFormFormat.php.

Field Documentation

$doc = null

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

const arrayIndex = '__1x_'

Definition at line 67 of file Class.DocFormFormat.php.


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