\SEOToolboxControllerExtension
Plugin: SEOToolbox Author: Dylan Grech Copyright: 2016
SEOtoolbox Controller Extension decorates the Content Controller
to add the auotamted links to a page where needed
Synopsis
class SEOToolboxControllerExtension
extends Extension
{
- // members
- private $maxLinksPerPage;
- private $settings = NULL;
- private integer $linkCount = 0;
- private boolean $addLinks = true;
- private array $excludeTags = ;
- private integer $maxLinks = 0;
- // methods
- public void index()
- private void crawl_response()
- private GlobalAutoLinkSettings|false getSettings()
- public void addAutomatedLinks()
- private array hashTags()
- public array addLinkToContent()
- private string parseField()
Hierarchy
Extends
- Extension
Members
private
- $addLinks
- $excludeTags
- $linkCount
- $maxLinks
- $maxLinksPerPage
- $settings
Methods
private
- crawl_response()
- getSettings() — Get the global settings and check if we should be adding links to this page
- hashTags() — Goes through $tags and replaces them in $html with a hash of themselves.
- parseField() — Parse the provided field and add the necessary links
public
- addAutomatedLinks() — Goes through all the automated link settings and adds the links where necessary
- addLinkToContent() — Adds the passed automated link to $content if possible.
- index()