QuinnInteractive\Seo\Analysis\FocusKeywordUniqueAnalysis
Class FocusKeywordUniqueAnalysis
Synopsis
class FocusKeywordUniqueAnalysis
extends Analysis
{
- // constants
- const FOCUS_KEYWORD_INUSE = 0;
- const FOCUS_KEYWORD_SUCCESS = 1;
- const FOCUS_KEYWORD_UNSET = 1;
- // Inherited members from Analysis
- protected $domParser;
- protected Page|PageHealthExtension $page;
- protected $result;
- protected $resultLevel;
- // methods
- public string getKeyword()
- public array responses()
- public int run()
- // Inherited methods from Analysis
- public void __construct()
- public string getContent()
- public SiteTree|PageHealthExtension getPage()
- public simple_html_dom getRenderedHtmlDomParser()
- public int getResult()
- public ArrayData inspect()
- public array responses()
- public int run()
- public $this setPage()
Hierarchy
Constants
Name | Value |
---|---|
FOCUS_KEYWORD_INUSE | 0 |
FOCUS_KEYWORD_SUCCESS | 1 |
FOCUS_KEYWORD_UNSET | 1 |
Members
protected
- $domParser
- $page — \Page|PageHealthExtension
- $result — int
- $resultLevel
—
string
One of: default, danger, warning or success
Methods
public
- getKeyword()
- responses()
- run() — You must override this in your subclass and perform your own checks. An integer must be returned that references an index of the array you return in your response() method override in your subclass.
Inherited from QuinnInteractive\Seo\Analysis\Analysis
public
- getContent() — Fetches the rendered content from the dom parser. This is why it's important that your templates are semantically correct. `<div>` tags should be used for layout and positioning purposes and using `<p>` tags for content is semantically correct. Semantically correct pages tend to rank higher in search engines for various reasons (such as how effectively crawlers parse your website etc.).
- getPage()
- getRenderedHtmlDomParser()
- getResult()
- inspect()
- responses() — All analyses must override the `responses()` method to provide response messages and the response level (which is used for the indicator).
- run() — You must override this in your subclass and perform your own checks. An integer must be returned that references an index of the array you return in your response() method override in your subclass.
- setPage()