Class Text_MetaTags

Description

Text Meta Tags

Text_MetaTags generate meta keywords, meta description and title from text.

Located in /MetaTags.php (line 29)


	
			
Method Summary
null __construct ([array $options = array()])
array getBannedWords ()
string getDescription ()
string getKeywords ()
array getMetaTags ()
string getText ()
string getTitle ()
bool setBannedWords (void $words)
bool setDescriptionLength (int $len)
bool setMaxKeywords (int $max)
bool setMaxTitleLength (int $len)
bool setMinWordLength (int $len)
bool setText (string $text)
bool setTitle (string $title)
bool setUrl (string $url)
Methods
Constructor __construct (line 152)

Construct

Available options:

  • maxDescriptionLength
  • minWordLength
  • maxKeywords
  • bannedWords
  • marks
  • maxTitleLength
You can set it:
  1.  $metaOptions array(
  2.      'maxDecsriptionLength' => 70,
  3.      'minWordLength'        => 3,
  4.      'maxKeywords'          => 15,
  5.      'bannedWords'          => 'foo, bar'//or array('foo', 'bar')
  6.      'marks'                => '.?!',
  7.      'maxTitleLength'       => 30
  8.  );
  9.  
  10.  $meta =new Text_MetaTags($metaOptions);

  • access: public
null __construct ([array $options = array()])
  • array $options: parameter list
getBannedWords (line 372)

Get banned words

  • access: public
array getBannedWords ()
getDescription (line 446)

Get meta description

  • access: public
string getDescription ()
getDescriptionLength (line 434)

Get the description's max. length

  • access: public
int getDescriptionLength ()
getKeywords (line 384)

Get the keywords

  • access: public
string getKeywords ()
getMaxKeywords (line 304)

Get max. keywords

  • access: public
int getMaxKeywords ()
getMaxTitleLength (line 500)

Get max. length of the title

  • access: public
int getMaxTitleLength ()
getMetaTags (line 268)

Get all tags (title, description, keywords)

  • access: public
array getMetaTags ()
getMinWordLength (line 334)

Get min. word's length

  • access: public
int getMinWordLength ()
getText (line 222)

Get the text

  • access: public
string getText ()
getTitle (line 530)

Get title

  • access: public
string getTitle ()
setBannedWords (line 348)

Sets the banned words

  • access: public
bool setBannedWords (void $words)
  • void $words: Banned words
setDescriptionLength (line 418)

Sets the description max. length

  • access: public
bool setDescriptionLength (int $len)
  • int $len: Description max. length
setMaxKeywords (line 288)

Sets the max. keywords

  • access: public
bool setMaxKeywords (int $max)
  • int $max: Max. keywords
setMaxTitleLength (line 484)

Sets the max. length of the title

  • access: public
bool setMaxTitleLength (int $len)
  • int $len: Max. length of the title
setMinWordLength (line 318)

Sets the min. word's length in the keywords

  • access: public
bool setMinWordLength (int $len)
  • int $len: Min. length
setText (line 208)

Sets the text

  • access: public
bool setText (string $text)
  • string $text: Text
setTitle (line 514)

Sets the title

  • access: public
bool setTitle (string $title)
  • string $title: Title
setUrl (line 236)

Sets the url

  • access: public
bool setUrl (string $url)
  • string $url: Url what we want to check

Documentation generated on Fri, 15 Jan 2010 17:28:11 +0100 by phpDocumentor 1.4.3