Class CowSay

Description

Implements interfaces:

A formatter class for Fortune class

A formatter class for Fortune class It displays the fortune cookie as well know cow!

  • author: Francesco Laurita
  • version: 1.0

Located in /Fortune.class.php (line 265)


	
			
Direct descendents
Class Description
CowSayImage As CowSay but the output is an image!
Method Summary
CowSay __construct ()
int findMaxLineLen (array $lines)
string formatFortune (string $fortune)
void wrapTo (int $len)
Methods
Constructor __construct (line 271)
CowSay __construct ()

Redefined in descendants as:
findMaxLineLen (line 392)

It used to find the longest line in the current fortune

It used to find the longest line in the current fortune

  • access: protected
int findMaxLineLen (array $lines)
  • array $lines
formatFortune (line 297)

The implemented method

The implemented method

string formatFortune (string $fortune)
  • string $fortune

Redefined in descendants as:
wrapTo (line 284)

By default the text is wrapped to 37 chars

By default the text is wrapped to 37 chars You can modify the defaul value using this method

  • access: public
void wrapTo (int $len)
  • int $len

Documentation generated on Sun, 01 Apr 2007 18:44:48 +0200 by phpDocumentor 1.3.0RC3