PHP Class SeoRedirect

Inheritance: extends SeoAppModel
Show file Open project: webtechnick/cakephp-seo-plugin

Public Properties

Property Type Description
$belongsTo
$displayField
$name
$searchFields Filter fields
$validate

Public Methods

Method Description
beforeSave ( $options = [] ) Check if SEO already exists, if so, unset it and set the ID then save.
callbackTest ( $request ) This is a helper function for testing.
findRedirectListByPriority ( ) : list Named scope to find list of uri -> redirect by order and approved/active

Method Details

beforeSave() public method

Check if SEO already exists, if so, unset it and set the ID then save.
public beforeSave ( $options = [] )

callbackTest() public method

This is a helper function for testing.
public callbackTest ( $request )

findRedirectListByPriority() public method

Named scope to find list of uri -> redirect by order and approved/active
public findRedirectListByPriority ( ) : list
return list of active and approved uri -> redirects ordered by priority

Property Details

$belongsTo public property

public $belongsTo

$displayField public property

public $displayField

$name public property

public $name

$searchFields public property

Filter fields
public $searchFields

$validate public property

public $validate