include/Sugarpdf/sugarpdf_config.php
Constants
K_PATH_CUSTOM_FONTS
= $sugarpdf_default["K_PATH_CUSTOM_FONTS"]custom path for PDF fonts (Use for non core added fonts)
K_PATH_URL_CACHE
= $sugarpdf_default["K_PATH_URL_CACHE"]cache directory for temporary files (url path)
PDF_ENCODING_TABLE_LIST
= $sugarpdf_default["PDF_ENCODING_TABLE_LIST"]Available encoding tables when adding a new font
PDF_ENCODING_TABLE_LABEL_LIST
= $sugarpdf_default["PDF_ENCODING_TABLE_LABEL_LIST"]Available encoding tables when adding a new font (Label)
Functions
defineFromConfig(
\$value $value, \$default $default
)
:
voidFunction 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.
| Name | Type | Description |
|---|---|---|
| $value | \$value | settings to search |
| $default | \$default | default value |
defineFromUserPreference(
\$value $value, \$default $default
)
:
voidThis 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.
| Name | Type | Description |
|---|---|---|
| $value | \$value | settings to search |
| $default | \$default | default value |