SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class AdminSeo

Provide Search Engine Optimisation functionality

Variables

NameVisibilityDescription
$content (static) 
$dom (static) 
$extra_links (static) 
$seo_considerations (static) 
$seo_goodresults (static) 
$seo_improvements (static) 
$seo_problems (static) 
$slug (static) 
$topic (static) 

Functions

NameVisibilityDescription
addContentpublic (static)Add main content for later processing
addLinkspublic (static)Add external links to inject into content analysis
determineAverageWordScorepublic (static)Determine SEO average word score
determineLinksScorepublic (static)Determines SEO links score
determineReadabilityScorepublic (static)Determine SEO readability score
determineSectionWordScorepublic (static)Determine SEO word count per section score
determineSlugWordsScorepublic (static)Determine SEO slug stopwords score
determineTopicWordsScorepublic (static)Determine SEO topic keywords score
determineWordCountScorepublic (static)Determine SEO word count score
getAnalysispublic (static)Populate SEO view with analysis
getFleschReadingScorepublic (static)Determine Flesch reading score
getKeywordDensitypublic (static)Return list of keyword density
getListOfLinkspublic (static)Return list of all links
getWordCountPerSectionpublic (static)Returns the average word count per section
isStopWordpublic (static)Determine if given word is a stop-word
processDOMpublic (static)Setup content as DOM object
processStringpublic (static)Return list of useful keywords from given string
setSlugpublic (static)Set page slug for analysis
setTopicpublic (static)Set topic (focus word) for analysis

public addContent

void AdminSeo::addContent ( string $str );

Add main content for later processing

public addLinks

void AdminSeo::addLinks ( array $links );

Add external links to inject into content analysis

public determineAverageWordScore

void AdminSeo::determineAverageWordScore ( );

Determine SEO average word score

public determineLinksScore

void AdminSeo::determineLinksScore ( );

Determines SEO links score

public determineReadabilityScore

void AdminSeo::determineReadabilityScore ( );

Determine SEO readability score

public determineSectionWordScore

void AdminSeo::determineSectionWordScore ( );

Determine SEO word count per section score

public determineSlugWordsScore

void AdminSeo::determineSlugWordsScore ( );

Determine SEO slug stopwords score

public determineTopicWordsScore

void AdminSeo::determineTopicWordsScore ( );

Determine SEO topic keywords score

public determineWordCountScore

void AdminSeo::determineWordCountScore ( );

Determine SEO word count score

public getAnalysis

string AdminSeo::getAnalysis ( );

Populate SEO view with analysis

public getFleschReadingScore

int AdminSeo::getFleschReadingScore ( string $str [, string $encoding ] );

Determine Flesch reading score
0 = hard, 100 = easy
Thanks to github.com/DaveChild

public getKeywordDensity

array AdminSeo::getKeywordDensity ( [ string $limit ] );

Return list of keyword density

public getListOfLinks

array AdminSeo::getListOfLinks ( );

Return list of all links

public getWordCountPerSection

int AdminSeo::getWordCountPerSection ( );

Returns the average word count per section

public isStopWord

bool|bool AdminSeo::isStopWord ( string $word );

Determine if given word is a stop-word

public processDOM

void AdminSeo::processDOM ( );

Setup content as DOM object

public processString

array AdminSeo::processString ( [ bool $all ] );

Return list of useful keywords from given string

public setSlug

void AdminSeo::setSlug ( string $str );

Set page slug for analysis

public setTopic

void AdminSeo::setTopic ( string $str );

Set topic (focus word) for analysis