PHP Class SeoHelper

Author: Matti Putkonen, [email protected]
Inheritance: extends Helper
Mostra file Open project: webtechnick/cakephp-seo-plugin Class Usage Examples

Public Properties

Property Type Description
$SeoABTest
$SeoCanonical
$SeoMetaTag
$SeoTitle
$helpers
$honeyPotId

Public Methods

Method Description
canonical ( $url = null, $full = true, $overwrite = false ) : HTMlElement Return a canonical link tag for SEO purpolses Utility method
dnsPrefetch ( $prefetches = [] ) : null | html Pull in the DNS prefetches if we have any
getABTestJS ( $test = null, $options = [] ) : string Return the ABTest GA code on current request
honeyPot ( $title = 'Click Here', $options = [] ) : HtmlLink Show a honeypot link to bait scrappers to click on for autobanning
loadModel ( $model = null ) : void Load a plugin model
metaTags ( $metaData = [] ) : string Show the meta tags designated for this uri
nextId ( ) Return the next Id to show.
redmineLink ( mixed $ticket_id = null ) : string This is a custom helper to translate ticket_id's into a full link into redmine based on a a config url 'abTesting.redmine' (custom functionality you may not need)
title ( $default = "" ) : string Find the title tag related to this request and output the result.

Method Details

canonical() public method

Return a canonical link tag for SEO purpolses Utility method
public canonical ( $url = null, $full = true, $overwrite = false ) : HTMlElement
return HTMlElement of canonical link or empty string if none found/used

dnsPrefetch() public method

Pull in the DNS prefetches if we have any
public dnsPrefetch ( $prefetches = [] ) : null | html
return null | html | html tags with dns-prefetch

getABTestJS() public method

Return the ABTest GA code on current request
public getABTestJS ( $test = null, $options = [] ) : string
return string ga script test, or null

honeyPot() public method

Show a honeypot link to bait scrappers to click on for autobanning
public honeyPot ( $title = 'Click Here', $options = [] ) : HtmlLink
return HtmlLink to honeypot action

loadModel() public method

Load a plugin model
public loadModel ( $model = null ) : void
return void

metaTags() public method

Show the meta tags designated for this uri
public metaTags ( $metaData = [] ) : string
return string of meta tags to show.

nextId() public method

Return the next Id to show.
public nextId ( )

title() public method

Find the title tag related to this request and output the result.
public title ( $default = "" ) : string
return string title for requested uri

Property Details

$SeoABTest public_oe property

public $SeoABTest

$SeoCanonical public_oe property

public $SeoCanonical

$SeoMetaTag public_oe property

public $SeoMetaTag

$SeoTitle public_oe property

public $SeoTitle

$helpers public_oe property

public $helpers

$honeyPotId public_oe property

public $honeyPotId