PHP Classes

File: example_02.php

Recommend this page to a friend!
  Classes of Dyego Fernandes de Sousa   Bar Code Generator   example_02.php   Download  
File: example_02.php
Role: Example script
Content type: text/plain
Description: Example
Class: Bar Code Generator
Generate bar code graphics for payments in Brazil
Author: By
Last change:
Date: 15 years ago
Size: 667 bytes


Class file image Download
//Requiring the class source...

//Instancing a new object

 * Prototype: [@object] = new cd_barra([string @code_number], {optional int @flag_output})
 * @code_number = The number of the bar code
 * @flag_output = default = 1; if @flag_output = 1 -> output to file specified by [class]->file. else output to screen
//The number to our code.
$code_number = '123456789321654951753852'

//Creates a new object with output to screen
$new_bar_code = new cd_barra($code_number,0);

//Creates a new object with output to file
$new_bar_code2 = new cd_barra($code_number,1, 'new_bar_code_file.gif');