PHP QrCode Liblary  2.0
 All Classes Functions Variables Groups Pages
Variables
Global Config

Global config file (contains global configuration-releted constants). More...

Variables

const QR_CACHEABLE true
 Mask cache switch. More...
 
const QR_CACHE_DIR dirname(__FILE__).DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR
 Cache dir path. More...
 
const QR_LOG_DIR dirname(__FILE__).DIRECTORY_SEPARATOR
 Default error logs dir. More...
 
const QR_FIND_BEST_MASK true
 If best mask is found. More...
 
const QR_FIND_FROM_RANDOM false
 Configure random mask checking. More...
 
const QR_DEFAULT_MASK 2
 Default an only mask to apply. More...
 
const QR_PNG_MAXIMUM_SIZE 1024
 Maximum allowed png image width (in pixels). More...
 

Detailed Description

Global config file (contains global configuration-releted constants).

Before version 2.0.0 only way to configure all calls. From version 2.0.0 values used here are treated as defaults but culd be overwriten by additional config. parrameters passed to functions.

Variable Documentation

const QR_CACHE_DIR dirname(__FILE__).DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR

Cache dir path.

String Used when QR_CACHEABLE === true. Specifies absolute server path for masks and format templates cache dir

const QR_CACHEABLE true

Mask cache switch.

Boolean Speciffies does mask ant template caching is enabled.

  • true - disk cache is used, more disk reads are performed but less CPU power is required,
  • false - mask and format templates are calculated each time in memory
const QR_DEFAULT_MASK 2

Default an only mask to apply.

Integer Specifies mask no (1..8) to be aplied every time, used when QR_FIND_BEST_MASK is set to false.

const QR_FIND_BEST_MASK true

If best mask is found.

Boolean Speciffies mask searching strategy:

  • true - estimates best mask (as QR-Code spec recomends by default) but may be extremally slow
  • false - check only one mask (specified by QR_DEFAULT_MASK), gives significant performance boost but (propably) results in worst quality codes
const QR_FIND_FROM_RANDOM false

Configure random mask checking.

Specifies algorithm for mask selection when QR_FIND_BEST_MASK is set to true.

  • if Boolean false - checks all masks available
  • if Integer 1..7 - value tells count of randomly selected masks need to be checked
const QR_LOG_DIR dirname(__FILE__).DIRECTORY_SEPARATOR

Default error logs dir.

String Absolute server path for log directory.

const QR_PNG_MAXIMUM_SIZE 1024

Maximum allowed png image width (in pixels).

Integer Maximal width/height of generated raster image. Tune to make sure GD and PHP can handle such big images.