PHP 클래스 SeoHelper

저자: Matti Putkonen, [email protected]
상속: extends Helper
파일 보기 프로젝트 열기: webtechnick/cakephp-seo-plugin 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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