include/Sugarpdf/sugarpdf_config.php

Show: inherited
Table of Contents

Constants

Constant  K_PATH_MAIN = $sugarpdf_default["K_PATH_MAIN"]
Constant  K_PATH_URL = $sugarpdf_default["K_PATH_URL"]

URL path to tcpdf installation folder

Constant  K_PATH_CUSTOM_FONTS = $sugarpdf_default["K_PATH_CUSTOM_FONTS"]

custom path for PDF fonts (Use for non core added fonts)

Constant  K_PATH_FONTS = $sugarpdf_default["K_PATH_FONTS"]

path for PDF fonts

Constant  K_PATH_CACHE = $sugarpdf_default["K_PATH_CACHE"]

cache directory for temporary files (full path)

Constant  K_PATH_URL_CACHE = $sugarpdf_default["K_PATH_URL_CACHE"]

cache directory for temporary files (url path)

Constant  K_PATH_CUSTOM_IMAGES = $sugarpdf_default["K_PATH_CUSTOM_IMAGES"]
Constant  K_PATH_IMAGES = $sugarpdf_default["K_PATH_IMAGES"]
Constant  K_BLANK_IMAGE = $sugarpdf_default["K_BLANK_IMAGE"]
Constant  PDF_PAGE_FORMAT_LIST = $sugarpdf_default["PDF_PAGE_FORMAT_LIST"]
Constant  PDF_PAGE_ORIENTATION_LIST = $sugarpdf_default["PDF_PAGE_ORIENTATION_LIST"]
Constant  PDF_ENCODING_TABLE_LIST = $sugarpdf_default["PDF_ENCODING_TABLE_LIST"]

Available encoding tables when adding a new font

Constant  PDF_ENCODING_TABLE_LABEL_LIST = $sugarpdf_default["PDF_ENCODING_TABLE_LABEL_LIST"]

Available encoding tables when adding a new font (Label)

Constant  K_TCPDF_EXTERNAL_CONFIG = true

Functions

functiondefineFromConfig( \$value $value, \$default $default ) : void

Function to define a sugarpdf seeting from the admin application settings (config table).

This function use the default value if there is nothing in the table.

Parameters
Name Type Description
$value \$value

settings to search

$default \$default

default value

functiondefineFromUserPreference( \$value $value, \$default $default ) : void

This function define a Sugarpdf setting from the user preferences.

This function use the default value if there is no preference. If SUGARPDF_USE_DEFAULT_SETTINGS is define the function will always use the default value. SUGARPDF_USE_FOCUS is use to load the preference of the none current user. To use this constant you have to define a global variable $focus_user.

Parameters
Name Type Description
$value \$value

settings to search

$default \$default

default value

Documentation was generated by DocBlox 0.18.1.