phpqrencode  0.1
qrencode.c File Reference

Functions

Variables


Detailed Description


Function Documentation

PHP_MINFO_FUNCTION ( qrencode  )
PHP_MINIT_FUNCTION ( qrencode  )
PHP_MSHUTDOWN_FUNCTION ( qrencode  )
static void qr_dtor ( zend_rsrc_list_entry *rsrc  TSRMLS_DC) [static]
resource qr_encode ( string  text,
int  version,
int  level,
int  mode,
int  casesensitive 
)

main function to encode text to qr code.

Parameters:
textthe string want to encode.
versionqrcode version
levellevel
modemode, could be QR_MODE_NUM, QR_MODE_AN, QR_MODE_8, QR_MODE_KANJI.
casesensitivecasesentive, if you want the 8 bit mode, must set this on.
Returns:
int qr_save ( resource  link,
string  filename,
int  size,
int  margin 
)

save function for qrencode.

Parameters:
linkqrcode resource link.
filenamefilename want to save, it could be empty, and will show the content directly.
sizesize
marginmargin.
Returns:

Variable Documentation

int le_qr [static]

$file qrencode.c

source file of php qrencode extension.

zend_function_entry qrencode_functions
Initial value:
 {

    PHP_FE(qr_save, NULL)
    {NULL, NULL, NULL}
}
zend_module_entry qrencode_module_entry
Initial value:
 {



    "qrencode",
    qrencode_functions,
    PHP_MINIT(qrencode),
    PHP_MSHUTDOWN(qrencode),
    NULL,
    NULL,
    PHP_MINFO(qrencode),



    STANDARD_MODULE_PROPERTIES
}