Plugins

# Class: PrintTools Source Location: /plugins/exportPdf/client/ExportPdfObjects.php
### Class Overview
Provides various static tools. | ### Methods getContent getDbContent getFileContent switchDistUnit
### Class Details [line 29] Provides various static tools. [ Top ] ### Class Methods ### method getContent [line 83]
`string getContent( string $storage)`
Retrieves text block content from external storage Storage info string is formatted as follows: file: "file~file/path" (URL, absolute or CartoWeb root-relative filesystem path DB: "db~DSN~SqlQuery #### Tags:
return: | content
access: | public
static: |
#### Parameters:
string | $storage | storage info
[ Top ] ### method getDbContent [line 120]
`string getDbContent( array $info)`
Retrieves text block content from DB #### Tags:
return: | content
access: | protected
static: |
#### Parameters:
array | $info | storage info array('db', $dsn, $sql)
[ Top ] ### method getFileContent [line 97]
`string getFileContent( array $info)`
Retrieves text block content from file. #### Tags:
return: | content
access: | protected
static: |
#### Parameters:
array | $info | storage info array('file', $filepath)
[ Top ] ### method switchDistUnit [line 39]
`float switchDistUnit( float $dist, string $from, string $to)`
Converts the distance $dist from $from unit to $to unit. in = 72 pt = 2.54 cm = 25.4 mm #### Tags:
return: | converted distance
access: | public
static: |
#### Parameters:
float | $dist | distance to convert
string | $from | initial unit: in, pt, cm, mm
string | $to | final unit
[ Top ] Documentation generated on Fri, 21 Sep 2007 13:30:46 +0200 by phpDocumentor 1.3.0RC3