Package DE_EPAGES::SEO::API::SEO
API functions for SEO check on content objects
@EXPORT_OK |
Functions
- AddCategoryDepthSEOCheckValues
- AddCategoryImageSEOCheckValues
- CalculateSEOQuality
- CalculateShopSEOQuality
- GetRatingSign
- GetSEOCheckValues
- GetSEOQualityClass
- GetShopSEOQualityValues
- GetWordCount
- PerformSEOCheck
AddCategoryDepthSEOCheckValues
Extends hValues with SEO check for the category hierarchy depth.
Syntax |
AddCategoryDepthSEOCheckValues($Object, $Shop, $hValues) |
Input |
|
AddCategoryImageSEOCheckValues
Extends hValues with SEO check for the category image.
Syntax |
AddCategoryImageSEOCheckValues($Object, $Shop, $hValues) |
Input |
|
CalculateSEOQuality
Calculates a rating factor which determindes the SEO quality based on the given values in $hValues.
Syntax |
$Rating = CalculateSEOQuality($hValues, $Object) |
Input |
|
Return |
|
CalculateShopSEOQuality
Calculates a rating factor which determindes the SEO quality for the shop.
Syntax |
$Rating = CalculateShopSEOQuality($hValues) |
Input |
|
Return |
|
GetRatingSign
Returns the html character code for the given SEO rating class string.
Syntax |
$Sign = GetRatingSign($RatingClass) |
Input |
|
Return |
|
GetSEOCheckValues
Calculates various SEO relevant ratings and values for ContentObject SEO checks. Values specific to derived classes can be added/changed unsing a hook.
Syntax |
$hValues = GetSEOCheckValues(Shop, $Object, $LanguageID); |
Input |
|
Return |
|
GetSEOQualityClass
Returns the CSS class string depending on the SEO quality value.
Syntax |
$QualityClass'} = GetSEOQualityClass($Quality); |
Input |
|
Return |
|
GetShopSEOQualityValues
Calculates the SEO quality for the shop. Uses general indicators like domain name, page cache, etc.
Syntax |
$hValues = GetShopSEOQualityValues($Shop) |
Input |
|
Return |
|
GetWordCount
Returns the number of words found in a given string.
Syntax |
$Count = GetWordCount($String) |
Input |
|
Return |
|
PerformSEOCheck
Performs the calculation of the SEO quality.
Syntax |
$hValues = PerformSEOCheck($Object) |
Input |
|
Return |
|