PHP 클래스 SeoUri

상속: extends SeoAppModel
파일 보기 프로젝트 열기: webtechnick/cakephp-seo-plugin

공개 프로퍼티들

프로퍼티 타입 설명
$displayField string Model Display Field
$hasMany array Has Many Association
$hasOne array Has One Association
$name string Model Name/Alias
$searchFields array Filter fields
$validate array Validation Rules

공개 메소드들

메소드 설명
afterSave ( boolean $created, $options = [] ) : boolean Send need approval email if we need it.
beforeSave ( array $options = [] ) : true If saving a regular expression, make sure to mark not approved unless is_approved is specifically being sent in.
findAllRegexUris ( ) : array This is a simple function to return all possible RegEx URIs from the DB (it has to return all of them, since we can't know which it's going to match) So we've wrapped the DB request in a simple cache request, configured by setting the config key cacheEngine
findForViewById ( $id ) : result Named scope to find for view
findIdByUri ( $uri = null ) : mixed Find the URI id by uri
findRegexUri ( string $request = null ) : array Checks an input $request against regex urls
requestMatch ( $request, $uri = null ) : boolean Given a request, see if the uri matches.
sendNotification ( $id = null ) : void Send the notification of a regular expression that needs approval.
setApproved ( $id = null ) : boolean Set as approved
urlEncode ( $id = null ) : boolean Url encode the uri

메소드 상세

afterSave() 공개 메소드

Send need approval email if we need it.
public afterSave ( boolean $created, $options = [] ) : boolean
$created boolean
리턴 boolean

beforeSave() 공개 메소드

If saving a regular expression, make sure to mark not approved unless is_approved is specifically being sent in.
public beforeSave ( array $options = [] ) : true
$options array
리턴 true

findAllRegexUris() 공개 메소드

This is a simple function to return all possible RegEx URIs from the DB (it has to return all of them, since we can't know which it's going to match) So we've wrapped the DB request in a simple cache request, configured by setting the config key cacheEngine
public findAllRegexUris ( ) : array
리턴 array $uris array(id => uri)

findForViewById() 공개 메소드

Named scope to find for view
public findForViewById ( $id ) : result
리턴 result of find.

findIdByUri() 공개 메소드

Find the URI id by uri
public findIdByUri ( $uri = null ) : mixed
리턴 mixed id

findRegexUri() 공개 메소드

Checks an input $request against regex urls
public findRegexUri ( string $request = null ) : array
$request string
리턴 array $uri_ids array(id)

requestMatch() 공개 메소드

Given a request, see if the uri matches.
public requestMatch ( $request, $uri = null ) : boolean
리턴 boolean if request matches the URI given

sendNotification() 공개 메소드

Send the notification of a regular expression that needs approval.
public sendNotification ( $id = null ) : void
리턴 void

setApproved() 공개 메소드

Set as approved
public setApproved ( $id = null ) : boolean
리턴 boolean result of save

urlEncode() 공개 메소드

Url encode the uri
public urlEncode ( $id = null ) : boolean
리턴 boolean success

프로퍼티 상세

$displayField 공개적으로 프로퍼티

Model Display Field
public string $displayField
리턴 string

$hasMany 공개적으로 프로퍼티

Has Many Association
public array $hasMany
리턴 array

$hasOne 공개적으로 프로퍼티

Has One Association
public array $hasOne
리턴 array

$name 공개적으로 프로퍼티

Model Name/Alias
public string $name
리턴 string

$searchFields 공개적으로 프로퍼티

Filter fields
public array $searchFields
리턴 array

$validate 공개적으로 프로퍼티

Validation Rules
public array $validate
리턴 array