dolibarr
x.y.z
|
Parent class for documents generators. More...
Public Member Functions | |
__construct ($db) | |
Constructor. More... | |
get_substitutionarray_user ($user, $outputlangs) | |
Define array with couple substitution key => substitution value. More... | |
getSubstitutionarrayMember ($member, $outputlangs) | |
Define array with couple substitution key => substitution value. More... | |
get_substitutionarray_mysoc ($mysoc, $outputlangs) | |
Define array with couple substitution key => substitution value. More... | |
get_substitutionarray_thirdparty ($object, $outputlangs, $array_key='company') | |
Define array with couple substitution key => substitution value For example {company_name}, {company_name_alias}. More... | |
get_substitutionarray_contact ($object, $outputlangs, $array_key='object') | |
Define array with couple substitution key => substitution value. More... | |
get_substitutionarray_other ($outputlangs) | |
Define array with couple substitution key => substitution value. More... | |
get_substitutionarray_object ($object, $outputlangs, $array_key='object') | |
Define array with couple substitution key => substitution value. More... | |
get_substitutionarray_lines ($line, $outputlangs, $linenumber=0) | |
Define array with couple substitution key => substitution value. More... | |
get_substitutionarray_shipment ($object, $outputlangs, $array_key='object') | |
Define array with couple substitution key => substitution value. More... | |
get_substitutionarray_shipment_lines ($line, $outputlangs) | |
Define array with couple substitution key => substitution value. More... | |
get_substitutionarray_each_var_object (&$object, $outputlangs, $recursive=1) | |
Define array with couple substitution key => substitution value. More... | |
fill_substitutionarray_with_extrafields ($object, $array_to_fill, $extrafields, $array_key, $outputlangs) | |
Fill array with couple extrafield key => extrafield value. More... | |
printRect ($pdf, $x, $y, $l, $h, $hidetop=0, $hidebottom=0) | |
Rect pdf. More... | |
columnSort ($a, $b) | |
uasort callback function to Sort columns fields More... | |
prepareArrayColumnField ($object, $outputlangs, $hidedetails=0, $hidedesc=0, $hideref=0) | |
Prepare Array Column Field. More... | |
getColumnContentWidth ($colKey) | |
get column content width from column key More... | |
getColumnContentXStart ($colKey) | |
get column content X (abscissa) left position from column key More... | |
getColumnRank ($colKey) | |
get column position rank from column key More... | |
insertNewColumnDef ($newColKey, $defArray, $targetCol=false, $insertAfterTarget=false) | |
get column position rank from column key More... | |
printStdColumnContent ($pdf, &$curY, $colKey, $columnText='') | |
print standard column content More... | |
printColDescContent ($pdf, &$curY, $colKey, $object, $i, $outputlangs, $hideref=0, $hidedesc=0, $issupplierline=0) | |
print description column content More... | |
getExtrafieldContent ($object, $extrafieldKey, $outputlangs=null) | |
get extrafield content for pdf writeHtmlCell compatibility usage for PDF line columns and object note block More... | |
getColumnStatus ($colKey) | |
get column status from column key More... | |
pdfTabTitles (&$pdf, $tab_top, $tab_height, $outputlangs, $hidetop=0) | |
Print standard column content. More... | |
defineColumnExtrafield ($object, $outputlangs, $hidedetails=0) | |
Define Array Column Field for extrafields. More... | |
Parent class for documents generators.
Definition at line 36 of file commondocgenerator.class.php.
CommonDocGenerator::__construct | ( | $db | ) |
Constructor.
Reimplemented in pdf_standard_recruitmentjobposition, doc_generic_recruitmentjobposition_odt, pdf_standard_myobject, doc_generic_myobject_odt, doc_generic_usergroup_odt, doc_generic_user_odt, doc_generic_ticket_odt, pdf_aurore, doc_generic_supplier_proposal_odt, pdf_standard, pdf_muscadet, pdf_cornas, doc_generic_supplier_order_odt, pdf_canelle, doc_generic_supplier_invoice_odt, pdf_eagle_proforma, pdf_standard, doc_generic_stock_odt, doc_generic_odt, doc_generic_reception_odt, pdf_cyan, pdf_azur, doc_generic_proposal_odt, doc_generic_task_odt, pdf_timespent, pdf_beluga, pdf_baleine, doc_generic_project_odt, pdf_standard, doc_generic_product_odt, pdf_vinci, doc_generic_mo_odt, pdf_standard, pdf_standard, doc_generic_member_odt, pdf_soleil, pdf_sponge, pdf_crabe, doc_generic_invoice_odt, ExportTsv, ExportExcel2007, ExportCsv, pdf_standard, doc_generic_shipment_odt, html_cerfafr, pdf_typhon, pdf_storm, pdf_strato, doc_generic_contract_odt, pdf_proforma, pdf_eratosthene, pdf_einstein, doc_generic_order_odt, BordereauChequeBlochet, doc_generic_bom_odt, pdf_sepamandate, pdf_ban, pdf_standard_asset, and doc_generic_asset_odt.
Definition at line 94 of file commondocgenerator.class.php.
References db.
CommonDocGenerator::columnSort | ( | $a, | |
$b | |||
) |
uasort callback function to Sort columns fields
array | $a | PDF lines array fields configs |
array | $b | PDF lines array fields configs |
Definition at line 997 of file commondocgenerator.class.php.
CommonDocGenerator::defineColumnExtrafield | ( | $object, | |
$outputlangs, | |||
$hidedetails = 0 |
|||
) |
Define Array Column Field for extrafields.
object | $object | common object det |
Translate | $outputlangs | langs |
int | $hidedetails | Do not show line details |
Definition at line 1598 of file commondocgenerator.class.php.
CommonDocGenerator::fill_substitutionarray_with_extrafields | ( | $object, | |
$array_to_fill, | |||
$extrafields, | |||
$array_key, | |||
$outputlangs | |||
) |
Fill array with couple extrafield key => extrafield value.
Object | $object | Object with extrafields (must have $object->array_options filled) |
array | $array_to_fill | Substitution array |
Extrafields | $extrafields | Extrafields object |
string | $array_key | Prefix for name of the keys into returned array |
Translate | $outputlangs | Lang object to use for output |
Definition at line 885 of file commondocgenerator.class.php.
CommonDocGenerator::get_substitutionarray_contact | ( | $object, | |
$outputlangs, | |||
$array_key = 'object' |
|||
) |
Define array with couple substitution key => substitution value.
Contact | $object | contact |
Translate | $outputlangs | object for output |
string | $array_key | Name of the key for return array |
Definition at line 321 of file commondocgenerator.class.php.
CommonDocGenerator::get_substitutionarray_each_var_object | ( | & | $object, |
$outputlangs, | |||
$recursive = 1 |
|||
) |
Define array with couple substitution key => substitution value.
Object | $object | Dolibarr Object |
Translate | $outputlangs | Language object for output |
boolean | int | $recursive | Want to fetch child array or child object. |
Definition at line 841 of file commondocgenerator.class.php.
CommonDocGenerator::get_substitutionarray_lines | ( | $line, | |
$outputlangs, | |||
$linenumber = 0 |
|||
) |
Define array with couple substitution key => substitution value.
Object | $line | Object line |
Translate | $outputlangs | Lang object to use for output |
int | $linenumber | The number of the line for the substitution of "object_line_pos" |
Definition at line 602 of file commondocgenerator.class.php.
CommonDocGenerator::get_substitutionarray_mysoc | ( | $mysoc, | |
$outputlangs | |||
) |
Define array with couple substitution key => substitution value.
Definition at line 197 of file commondocgenerator.class.php.
CommonDocGenerator::get_substitutionarray_object | ( | $object, | |
$outputlangs, | |||
$array_key = 'object' |
|||
) |
Define array with couple substitution key => substitution value.
Object | $object | Main object to use as data source |
Translate | $outputlangs | Lang object to use for output |
string | $array_key | Name of the key for return array |
Reimplemented in doc_generic_user_odt, doc_generic_ticket_odt, doc_generic_task_odt, doc_generic_project_odt, and doc_generic_member_odt.
Definition at line 421 of file commondocgenerator.class.php.
CommonDocGenerator::get_substitutionarray_other | ( | $outputlangs | ) |
Define array with couple substitution key => substitution value.
Translate | $outputlangs | Language object for output |
Definition at line 379 of file commondocgenerator.class.php.
CommonDocGenerator::get_substitutionarray_shipment | ( | $object, | |
$outputlangs, | |||
$array_key = 'object' |
|||
) |
Define array with couple substitution key => substitution value.
Expedition | $object | Main object to use as data source |
Translate | $outputlangs | Lang object to use for output |
array | $array_key | Name of the key for return array |
Definition at line 718 of file commondocgenerator.class.php.
CommonDocGenerator::get_substitutionarray_shipment_lines | ( | $line, | |
$outputlangs | |||
) |
Define array with couple substitution key => substitution value.
ExpeditionLigne | $line | Object line |
Translate | $outputlangs | Lang object to use for output |
Definition at line 783 of file commondocgenerator.class.php.
CommonDocGenerator::get_substitutionarray_thirdparty | ( | $object, | |
$outputlangs, | |||
$array_key = 'company' |
|||
) |
Define array with couple substitution key => substitution value For example {company_name}, {company_name_alias}.
Societe | $object | Object |
Translate | $outputlangs | Language object for output |
string | $array_key | Name of the key for return array |
Definition at line 256 of file commondocgenerator.class.php.
CommonDocGenerator::get_substitutionarray_user | ( | $user, | |
$outputlangs | |||
) |
Define array with couple substitution key => substitution value.
Definition at line 108 of file commondocgenerator.class.php.
CommonDocGenerator::getColumnContentWidth | ( | $colKey | ) |
get column content width from column key
string | $colKey | the column key |
Definition at line 1093 of file commondocgenerator.class.php.
CommonDocGenerator::getColumnContentXStart | ( | $colKey | ) |
get column content X (abscissa) left position from column key
string | $colKey | the column key |
Definition at line 1106 of file commondocgenerator.class.php.
CommonDocGenerator::getColumnRank | ( | $colKey | ) |
get column position rank from column key
string | $colKey | the column key |
Definition at line 1118 of file commondocgenerator.class.php.
CommonDocGenerator::getColumnStatus | ( | $colKey | ) |
get column status from column key
string | $colKey | the column key |
Definition at line 1502 of file commondocgenerator.class.php.
CommonDocGenerator::getExtrafieldContent | ( | $object, | |
$extrafieldKey, | |||
$outputlangs = null |
|||
) |
get extrafield content for pdf writeHtmlCell compatibility usage for PDF line columns and object note block
object | $object | Common object |
string | $extrafieldKey | The extrafield key |
Translate | $outputlangs | The output langs (if value is __(XXX)__ we use it to translate it). |
Definition at line 1263 of file commondocgenerator.class.php.
CommonDocGenerator::getSubstitutionarrayMember | ( | $member, | |
$outputlangs | |||
) |
Define array with couple substitution key => substitution value.
Definition at line 150 of file commondocgenerator.class.php.
CommonDocGenerator::insertNewColumnDef | ( | $newColKey, | |
$defArray, | |||
$targetCol = false , |
|||
$insertAfterTarget = false |
|||
) |
get column position rank from column key
string | $newColKey | the new column key |
array | $defArray | a single column definition array |
string | $targetCol | target column used to place the new column beside |
bool | $insertAfterTarget | insert before or after target column ? |
Definition at line 1135 of file commondocgenerator.class.php.
CommonDocGenerator::pdfTabTitles | ( | & | $pdf, |
$tab_top, | |||
$tab_height, | |||
$outputlangs, | |||
$hidetop = 0 |
|||
) |
Print standard column content.
TCPDI | Pdf object | |
float | $tab_top | Tab top position |
float | $tab_height | Default tab height |
Translate | $outputlangs | Output language |
int | $hidetop | Hide top |
Definition at line 1521 of file commondocgenerator.class.php.
CommonDocGenerator::prepareArrayColumnField | ( | $object, | |
$outputlangs, | |||
$hidedetails = 0 , |
|||
$hidedesc = 0 , |
|||
$hideref = 0 |
|||
) |
Prepare Array Column Field.
object | $object | common object |
Translate | $outputlangs | langs |
int | $hidedetails | Do not show line details |
int | $hidedesc | Do not show desc |
int | $hideref | Do not show ref |
Definition at line 1021 of file commondocgenerator.class.php.
CommonDocGenerator::printColDescContent | ( | $pdf, | |
& | $curY, | ||
$colKey, | |||
$object, | |||
$i, | |||
$outputlangs, | |||
$hideref = 0 , |
|||
$hidedesc = 0 , |
|||
$issupplierline = 0 |
|||
) |
print description column content
TCPDF | pdf object | |
float | $curY | curent Y position |
string | $colKey | the column key |
object | $object | CommonObject |
int | $i | the $object->lines array key |
Translate | $outputlangs | Output language |
int | $hideref | hide ref |
int | $hidedesc | hide desc |
int | $issupplierline | if object need supplier product |
Definition at line 1226 of file commondocgenerator.class.php.
CommonDocGenerator::printRect | ( | $pdf, | |
$x, | |||
$y, | |||
$l, | |||
$h, | |||
$hidetop = 0 , |
|||
$hidebottom = 0 |
|||
) |
Rect pdf.
TCPDF | Object PDF | |
float | $x | Abscissa of first point |
float | $y | Ordinate of first point |
float | $l | ?? |
float | $h | ?? |
int | $hidetop | 1=Hide top bar of array and title, 0=Hide nothing, -1=Hide only title |
int | $hidebottom | Hide bottom |
Definition at line 977 of file commondocgenerator.class.php.
CommonDocGenerator::printStdColumnContent | ( | $pdf, | |
& | $curY, | ||
$colKey, | |||
$columnText = '' |
|||
) |
print standard column content
TCPDF | pdf object | |
float | $curY | curent Y position |
string | $colKey | the column key |
string | $columnText | column text |
Definition at line 1180 of file commondocgenerator.class.php.