Class Format

Description

Located in /lib/Format.php (line 14)


	
			
Method Summary
 string box (string $title, string $content, [string $heading = ''])
 string href (array $args)
 string image (array $args)
 string prose (string $buffer, [bool $specialFirst = true])
 string style (array $args)
 string webPath (array $args)
Methods
box (line 95)

Generates a box sutable for news listings, etc.

  • static:
  • access: public
string box (string $title, string $content, [string $heading = ''])
  • string $title
  • string $content
  • string $heading
href (line 120)

Generates an html link (href) with the supplied paramaters.

Item labled 'display' will be used as display text for the link. An image can also be used by specifying its paramaters starting with img e.g. 'imgsrc'=>'/path/to/img', etc.

Automatically accounts for currently selected language.

  • static:
  • access: public
string href (array $args)
  • array $args
image (line 171)

Similar to makeLink except it just generates image code.

  • static:
  • access: public
  • see: makeLink()
string image (array $args)
  • array $args
prose (line 26)

Formats a plain text string into a collection of paragraphs.

Any series of two or more newlines indicates a new paragraph. Can also change the style of the first paragraph.

  • static:
  • access: public
string prose (string $buffer, [bool $specialFirst = true])
  • string $buffer: plain text to format
  • bool $specialFirst: if true, first paragraph will get special formatting
style (line 200)

Similar to makeLink(), but generates style link code: <link rel="stylsheet" href="/path/to/style" />

  • static:
  • access: public
  • see: makeLink()
string style (array $args)
  • array $args
webPath (line 226)

Generates the web path needed to created links, etc.

  • static:
  • access: public
string webPath (array $args)
  • array $args

Documentation generated on Mon, 25 Oct 2004 15:26:18 -0700 by phpDocumentor 1.3.0RC3