Login   Register  
PHP Classes
elePHPant
Icontem

File: example_02.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dyego Fernandes  >  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: 2008-09-16 03:56
Size: 667 bytes
 

Contents

Class file image Download
<?
//Requiring the class source...
require_once('boleto.class.php'); 

//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'); 
?>