|
|
|
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
|
| |
|
|
|
Private Method Summary |
| String |
getImage()generates a JPEG image from the current Template, Price & Currency or takes it from the cache |
|
|
|
|
|
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 |
= >>"€"<< |
|
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
|
|
|
|
|
|
|
|
| PHPDoc 1.0beta |