-
Notifications
You must be signed in to change notification settings - Fork 35
icms_ipf_Metagen
Raimondas Rimkevičius edited this page Mar 9, 2020
·
1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
Generates META tags
- Class name: icms_ipf_Metagen
- Namespace:
public \icms_core_Textsanitizer $_myts
Instance of icms_core_Textsanitizer
- Visibility: public
public string $_title
Title
- Visibility: public
public string $_original_title
Original title
- Visibility: public
public string $_keywords
Keywords
- Visibility: public
public string $_meta_description
Meta description
- Visibility: public
public string $_categoryPath
Category path
- Visibility: public
public string $_description
Description
- Visibility: public
public int $_minChar = 4
Min chars
- Visibility: public
mixed icms_ipf_Metagen::__construct(string title, string keywords, string description, string categoryPath)
Constructor for icms_ipf_Metagen
- Visibility: public
- title string - <p>Page title</p>
- keywords string - <p>List of meta keywords</p>
- description string - <p>Meta description</p>
- categoryPath string - <p>Category path</p>
bool icms_ipf_Metagen::emptyString(mixed var)
Return true if the string is length > 0
- Visibility: public
- var mixed
string icms_ipf_Metagen::generateSeoTitle(mixed title, mixed withExt)
Create a title for the short_url field of an article
- Visibility: public
- title mixed
- withExt mixed
string icms_ipf_Metagen::html2text(document)
- Visibility: public
- document mixed
mixed icms_ipf_Metagen::setTitle(string title)
Sets the title property
- Visibility: public
- title string
mixed icms_ipf_Metagen::setKeywords(string keywords)
Sets the keyword property
- Visibility: public
- keywords string
mixed icms_ipf_Metagen::setCategoryPath(string categoryPath)
Sets the categoryPath property
- Visibility: public
- categoryPath string
mixed icms_ipf_Metagen::setDescription(string description)
Sets the description property
- Visibility: public
- description string
mixed icms_ipf_Metagen::createTitleTag()
An empty function
- Visibility: public
string icms_ipf_Metagen::purifyText(string text, bool keyword)
Cleans the provided text, a wrapper for icms_purifyText
- Visibility: public
- text string - <p>Text to be cleaned</p>
- keyword bool - <p>Whether the provided string is a keyword, or not</p>
string icms_ipf_Metagen::createMetaDescription(int maxWords)
Creates a meta description
- Visibility: public
- maxWords int - <p>Maximum number of words for the description</p>
array icms_ipf_Metagen::findMetaKeywords(\steing text, int minChar)
Generates a list of keywords from the provided text
- Visibility: public
- text steing - <p>Text to parse</p>
- minChar int - <p>Minimum word length for the keywords</p>
string icms_ipf_Metagen::createMetaKeywords()
Creates a string of keywords
- Visibility: public
mixed icms_ipf_Metagen::autoBuildMeta_keywords()
An empty function
- Visibility: public
mixed icms_ipf_Metagen::buildAutoMetaTags()
Generates keywords, description and title, setting the associated properties
- Visibility: public
mixed icms_ipf_Metagen::createMetaTags()
Assigns the meta tags to the template
- Visibility: public