PHP QrCode Liblary  2.0
 All Classes Functions Variables Groups Pages
Public Member Functions | Public Attributes | List of all members
QRframeFiller Class Reference

Fills frame with data. More...

Public Member Functions

 __construct ($width, &$frame)
 Frame filler Constructor. More...
 
 setFrameAt ($at, $val)
 Sets frame code at given position. More...
 
 getFrameAt ($at)
 Gets frame code from given position. More...
 
 next ()
 Proceed to next code point. More...
 

Public Attributes

 $width
 Integer Frame width
 
 $frame
 Array Frame itself
 
 $x
 Integer current X position
 
 $y
 Integer current Y position
 
 $dir
 Integer direction
 
 $bit
 Integer bit
 

Detailed Description

Fills frame with data.

Each empty frame consist of markers, timing symbols and format configuration. Remaining place is place for data, and should be filled according to QR Code spec.

Constructor & Destructor Documentation

QRframeFiller::__construct (   $width,
$frame 
)

Frame filler Constructor.

Parameters
Integer$widthframe size
Array$frameFrame array

Member Function Documentation

QRframeFiller::getFrameAt (   $at)

Gets frame code from given position.

Parameters
Array$atposition, map containing x and y coordinates
Returns
Integer value at requested position
QRframeFiller::next ( )

Proceed to next code point.

QRframeFiller::setFrameAt (   $at,
  $val 
)

Sets frame code at given position.

Parameters
Array$atposition, map containing x and y coordinates
Integer$valvalue to set

The documentation for this class was generated from the following file: