linea21-externals
[ class tree: linea21-externals ] [ index: linea21-externals ] [ all elements ]

Class: awAntiSpam

Source Location: /class/system/artichow/php5/AntiSpam.class.php

Class Overview

awImage
   |
   --awAntiSpam

AntiSpam String printed on the images are case insensitive.


Variables

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: awImage

awImage::__construct()
Build the image
awImage::create()
Create a new awimage
awImage::drawComponent()
Draw a component on the image
awImage::drawError()
awImage::drawErrorFile()
awImage::drawShadow()
awImage::get()
Return the image content as binary data
awImage::getAntiAliasing()
Return the antialiasing setting
awImage::getBackground()
Return image background, whether a Color or a Gradient
awImage::getDriver()
Get driver of the image
awImage::getFormat()
Returns the image format as an integer
awImage::getFormatString()
Returns the image format as a string
awImage::selectDriver()
Select the correct driver
awImage::send()
Send the image into a file or to the user browser
awImage::sendHeaders()
Send the correct HTTP header according to the image type
awImage::setAntiAliasing()
Turn antialiasing on or off
awImage::setBackground()
Change image background
awImage::setBackgroundColor()
Change image background color
awImage::setBackgroundGradient()
Change image background gradient
awImage::setDriver()
Sets the driver that will be used to draw the graph
awImage::setFormat()
Change image format
awImage::setSize()
Change the image size

Class Details

[line 19]
AntiSpam String printed on the images are case insensitive.



[ Top ]


Class Variables

$noise =  0

[line 33]

Noise intensity



Tags:

access:  protected

Type:   int


[ Top ]

$string =

[line 26]

Anti-spam string



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


constructor __construct [line 40]

awAntiSpam __construct( [string $string = ''])

Construct a new awAntiSpam image



Tags:

access:  public


Overrides awImage::__construct() (Build the image)

Parameters:

string   $string   A string to display

[ Top ]

method check [line 106]

bool check( string $qName, string $value, [bool $case = TRUE])

Verify user entry



Tags:

return:  TRUE if the value is correct, FALSE otherwise
access:  public


Parameters:

string   $qName   A name that identify the anti-spam image
string   $value   User-defined value
bool   $case   TRUE for case insensitive check, FALSE for case sensitive check ? (default to TRUE)

[ Top ]

method draw [line 124]

void draw( )

Draw image



Tags:

access:  public


[ Top ]

method drawNoise [line 196]

void drawNoise( $width, $height)



Tags:

access:  protected


Parameters:

   $width  
   $height  

[ Top ]

method save [line 92]

void save( string $qName)

Save string value in session You can use check() to verify the value later



Tags:

access:  public


Parameters:

string   $qName   A name that identify the anti-spam image

[ Top ]

method session [line 213]

void session( )



Tags:

access:  protected


[ Top ]

method setNoise [line 76]

void setNoise( $noise, int $nois)

Set noise on image



Tags:

access:  public


Parameters:

int   $nois   Noise intensity (from 0 to 10)
   $noise  

[ Top ]

method setRand [line 54]

string setRand( int $length)

Create a random string



Tags:

return:  String created
access:  public


Parameters:

int   $length   String length

[ Top ]


Documentation generated on Thu, 03 May 2012 15:02:02 +0200 by phpDocumentor 1.4.1