Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: c:/web/jpeto2/jpeto/MODULES/jpeto_pricesticker/jpeto_pricesticker.php
JPETo - James's Publishing & Editing Tool - jpeto_tools

jpeto_pricesticker

jpeto_pricesticker

This class generates a price-sticker

 

private class jpeto_pricesticker

This class generates a price-sticker

 

Public Method Summary

void

jpeto_pricesticker([ string $j_Price, string $j_Currency ])

Constructor for jpeto_pricesticker

Private Method Summary

String

getImage()

generates a JPEG image from the current Template, Price & Currency or takes it from the cache

Private Field Summary

integer

$j_Currency

Currency on the sticker
integer

$j_Price

Price on the sticker
integer

$size

initial Text size
string

$red

Red Value of Text
string

$green

Green Value of Text
string

$blue

Blue Value of Text
string

$j_SubText

SubText
integer

$subSize

SubText size
string

$subRed

Red Value of SubText
string

$subGreen

Green Value of SubText
string

$subBlue

Blue Value of SubText
string

$j_AltText

Roll-Over Text
string

$Template

Template for the background of the sticker
integer

$TemplateWidth

Width of template file
integer

$TemplateHeight

Height of template file
integer

$maxTextWidth

maximum width of text
string

$fontFile

font file to use

Included files Summary, Type: include_once

jpeto/jpeto_config.php Warning: documentation is missing.

Public Method Details

jpeto_pricesticker

public void jpeto_pricesticker( [ string $j_Price, string $j_Currency ] )

  Constructor for jpeto_pricesticker

Parameter
string $j_Price = >>"0"<<
sets the price for the sticker
string $j_Currency = >>"&#8364;"<<
sets the currency for the sticker
Returns void


Private Method Details

getImage

private String getImage( )

  generates a JPEG image from the current Template, Price & Currency or takes it from the cache

Returns String $imagePath


Private Field Details

$j_Currency

private integer $j_Currency

>><<

Currency on the sticker


$j_Price

private integer $j_Price

>><<

Price on the sticker


$size

private integer $size

>>40<<

initial Text size


$red

private string $red

>>"0"<<

Red Value of Text


$green

private string $green

>>"0"<<

Green Value of Text


$blue

private string $blue

>>"0"<<

Blue Value of Text


$j_SubText

private string $j_SubText

>>""<<

SubText


$subSize

private integer $subSize

>>9<<

SubText size


$subRed

private string $subRed

>>"0"<<

Red Value of SubText


$subGreen

private string $subGreen

>>"0"<<

Green Value of SubText


$subBlue

private string $subBlue

>>"0"<<

Blue Value of SubText


$j_AltText

private string $j_AltText

>>""<<

Roll-Over Text


$Template

private string $Template

>>"pricesticker.jpg"<<

Template for the background of the sticker


$TemplateWidth

private integer $TemplateWidth

>>80<<

Width of template file


$TemplateHeight

private integer $TemplateHeight

>>43<<

Height of template file


$maxTextWidth

private integer $maxTextWidth

>>60<<

maximum width of text


$fontFile

private string $fontFile

>>"arialbd.ttf"<<

font file to use


Included Files, Type: include_once

jpeto/jpeto_config.php

include_once( jpeto/jpeto_config.php )




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta