PHP Класс SeoHelper

Автор: Matti Putkonen, [email protected]
Наследование: extends Helper
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$SeoABTest
$SeoCanonical
$SeoMetaTag
$SeoTitle
$helpers
$honeyPotId

Открытые методы

Метод Описание
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.

Описание методов

canonical() публичный Метод

Return a canonical link tag for SEO purpolses Utility method
public canonical ( $url = null, $full = true, $overwrite = false ) : HTMlElement
Результат HTMlElement of canonical link or empty string if none found/used

dnsPrefetch() публичный Метод

Pull in the DNS prefetches if we have any
public dnsPrefetch ( $prefetches = [] ) : null | html
Результат null | html | html tags with dns-prefetch

getABTestJS() публичный Метод

Return the ABTest GA code on current request
public getABTestJS ( $test = null, $options = [] ) : string
Результат string ga script test, or null

honeyPot() публичный Метод

Show a honeypot link to bait scrappers to click on for autobanning
public honeyPot ( $title = 'Click Here', $options = [] ) : HtmlLink
Результат HtmlLink to honeypot action

loadModel() публичный Метод

Load a plugin model
public loadModel ( $model = null ) : void
Результат void

metaTags() публичный Метод

Show the meta tags designated for this uri
public metaTags ( $metaData = [] ) : string
Результат string of meta tags to show.

nextId() публичный Метод

Return the next Id to show.
public nextId ( )

title() публичный Метод

Find the title tag related to this request and output the result.
public title ( $default = "" ) : string
Результат string title for requested uri

Описание свойств

$SeoABTest публичное свойство

public $SeoABTest

$SeoCanonical публичное свойство

public $SeoCanonical

$SeoMetaTag публичное свойство

public $SeoMetaTag

$SeoTitle публичное свойство

public $SeoTitle

$helpers публичное свойство

public $helpers

$honeyPotId публичное свойство

public $honeyPotId