Construct
Available options:
- maxDescriptionLength
- minWordLength
- maxKeywords
- bannedWords
- marks
- maxTitleLength
You can set it:
$metaOptions = array(
'maxDecsriptionLength' => 70,
'minWordLength' => 3,
'maxKeywords' => 15,
'bannedWords' => 'foo, bar', //or array('foo', 'bar')
'marks' => '.?!',
'maxTitleLength' => 30
);
null
__construct
([array $options = array()])
-
array
$options: parameter list
Get banned words
array
getBannedWords
()
Get meta description
string
getDescription
()
Get the description's max. length
int
getDescriptionLength
()
Get the keywords
string
getKeywords
()
Get max. keywords
int
getMaxKeywords
()
Get max. length of the title
int
getMaxTitleLength
()
Get all tags (title, description, keywords)
array
getMetaTags
()
Get min. word's length
int
getMinWordLength
()
Get the text
string
getText
()
Get title
string
getTitle
()
Sets the banned words
bool
setBannedWords
(void $words)
-
void
$words: Banned words
Sets the description max. length
bool
setDescriptionLength
(int $len)
-
int
$len: Description max. length
Sets the max. keywords
bool
setMaxKeywords
(int $max)
Sets the max. length of the title
bool
setMaxTitleLength
(int $len)
-
int
$len: Max. length of the title
Sets the min. word's length in the keywords
bool
setMinWordLength
(int $len)
Sets the text
bool
setText
(string $text)
Sets the title
bool
setTitle
(string $title)
Sets the url
bool
setUrl
(string $url)
-
string
$url: Url what we want to check