Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
editutil.php File Reference

Go to the source code of this file.

Namespaces

namespace  FDL
 

Functions

 getHtmlInput (&$doc, &$oattr, $value, $index="", $jsevent="", $notd=false)
 
 elinkEncode (&$doc, $attrik, $link, $index, &$ititle="", &$isymbol="")
 
 getLayArray (&$lay, &$doc, &$oattr, $row=-1)
 
 getZoneLayArray (&$lay, &$doc, &$oattr, $zone)
 
 rowattrReplace (&$doc, $s, $index, &$defval=null)
 
 getLayAdoc (&$lay, &$doc, &$oattr, $value, $aname, $index)
 
 getLayMultiDoc (&$lay, &$doc, &$oattr, $value, $aname, $index)
 
 getLayDate (&$lay, &$doc, &$oattr, $value, $aname, $index)
 
 getLayOptions (&$lay, &$doc, &$oattr, $value, $aname, $index)
 
 getLayDocOption (&$lay, &$doc, &$oattr, $value, $aname, $index)
 
 getLayTextOptions (&$lay, &$doc, &$oattr, $value, $aname, $index)
 
 getLayIdoc (&$doc, &$oattr, $attridk, $attrin, $value, $zone="")
 
 editmode (&$action)
 
 addDocIdCreate (BasicAttribute &$oattr, Doc &$doc, $attridk, $value, $index)
 

Function Documentation

addDocIdCreate ( BasicAttribute $oattr,
Doc $doc,
  $attridk,
  $value,
  $index 
)

add button to create/modify document relation

Parameters
DocAttribute$oattr

Definition at line 1466 of file editutil.php.

+ Here is the call graph for this function:

editmode ( $action)

add different js files needed in edition mode

Definition at line 1456 of file editutil.php.

elinkEncode ( $doc,
  $attrik,
  $link,
  $index,
$ititle = "",
$isymbol = "" 
)

Definition at line 743 of file editutil.php.

+ Here is the call graph for this function:

getHtmlInput ( $doc,
$oattr,
  $value,
  $index = "",
  $jsevent = "",
  $notd = false 
)

Compose html code to insert input

Parameters
Doc&$docdocument to edit
DocAttribute&$attrattribute to edit
string$valuevalue of the attribute
string$indexin case of array : row of the array
string$jseventadd an javascript callback on input (like onblur or onmouseover)
string$notdnot add cells in html input generated (by default inputs are in arrays)

Definition at line 32 of file editutil.php.

+ Here is the call graph for this function:

getLayAdoc ( $lay,
$doc,
$oattr,
  $value,
  $aname,
  $index 
)

generate HTML for inline document (not virtual)

Parameters
Layout$laytemplate of html input
Doc$doccurrent document in edition
DocAttribute$oattrcurrent attribute for input
string$valuevalue of the attribute to display (generaly the value comes from current document)
string$anameinput HTML name (generaly it is '_'+$oattr->id)
int$indexcurrent row number if it is in array ("" if it is not in array)

Definition at line 1169 of file editutil.php.

getLayArray ( $lay,
$doc,
$oattr,
  $row = - 1 
)

Definition at line 840 of file editutil.php.

+ Here is the call graph for this function:

getLayDate ( $lay,
$doc,
$oattr,
  $value,
  $aname,
  $index 
)

generate HTML for date attribute

Parameters
Layout$laytemplate of html input
Doc$doccurrent document in edition
DocAttribute$oattrcurrent attribute for input
string$valuevalue of the attribute to display (generaly the value comes from current document)
string$anameinput HTML name (generaly it is '_'+$oattr->id)
int$indexcurrent row number if it is in array ("" if it is not in array)

Definition at line 1222 of file editutil.php.

+ Here is the call graph for this function:

getLayDocOption ( $lay,
$doc,
$oattr,
  $value,
  $aname,
  $index 
)

generate HTML for option attributes

Parameters
Layout$laytemplate of html input
Doc$doccurrent document in edition
DocAttribute$oattrcurrent attribute for input
string$valuevalue of the attribute to display (generaly the value comes from current document)
string$anameinput HTML name (generaly it is '_'+$oattr->id)
int$indexcurrent row number if it is in array ("" if it is not in array)

Definition at line 1373 of file editutil.php.

getLayIdoc ( $doc,
$oattr,
  $attridk,
  $attrin,
  $value,
  $zone = "" 
)

generate HTML for idoc attribute

Parameters
DocAttribute$oattrcurrent attribute for input
string$valuevalue of the attribute to display (generaly the value comes from current document)
Returns
String the formated output

Definition at line 1435 of file editutil.php.

+ Here is the call graph for this function:

getLayMultiDoc ( $lay,
$doc,
$oattr,
  $value,
  $aname,
  $index 
)

generate HTML for multiple docid

Parameters
Layout$laytemplate of html input
Doc$doccurrent document in edition
DocAttribute$oattrcurrent attribute for input
string$valuevalue of the attribute to display (generaly the value comes from current document)
string$anameinput HTML name (generaly it is '_'+$oattr->id)
int$indexcurrent row number if it is in array ("" if it is not in array)

Definition at line 1187 of file editutil.php.

getLayOptions ( $lay,
$doc,
$oattr,
  $value,
  $aname,
  $index 
)

generate HTML for enum attributes

Parameters
Layout$laytemplate of html input
Doc$doccurrent document in edition
DocAttribute$oattrcurrent attribute for input
string$valuevalue of the attribute to display (generaly the value comes from current document)
string$anameinput HTML name (generaly it is '_'+$oattr->id)
int$indexcurrent row number if it is in array ("" if it is not in array)

Definition at line 1253 of file editutil.php.

getLayTextOptions ( $lay,
$doc,
$oattr,
  $value,
  $aname,
  $index 
)

generate HTML for text attributes with help function

Parameters
Layout$laytemplate of html input
Doc$doccurrent document in edition
DocAttribute$oattrcurrent attribute for input
string$valuevalue of the attribute to display (generaly the value comes from current document)
string$anameinput HTML name (generaly it is '_'+$oattr->id)
int$indexcurrent row number if it is in array ("" if it is not in array)

Definition at line 1398 of file editutil.php.

+ Here is the call graph for this function:

getZoneLayArray ( $lay,
$doc,
$oattr,
  $zone 
)

Definition at line 1023 of file editutil.php.

+ Here is the call graph for this function:

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

Definition at line 1141 of file editutil.php.

+ Here is the call graph for this function:

← centre documentaire © anakeen - published under CC License - Dynacase