PHP Класс Creare_CreareSeoCore_Model_Observer

Наследование: extends Mage_Core_Model_Abstract
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$helper

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

Метод Описание
_construct ( )
applyTag ( $observer ) * The function to remove the meta keywords tag
changeRobots ( $observer )
contactsMetaData ( Varien_Event_Observer $observer ) * Adds the page title and meta description to the contact page's
discontinuedCheck ( $observer )
forceHomepageTitle ( $observer ) * If set, replaces the homepage title with the definitive one set in the config
forceProductCanonical ( Varien_Event_Observer $observer ) * Checks if the page loaded is the canonical version, if not redirects to that version
getDefaultTitle ( )
getDescription ( )
getTitle ( )
metaHelper ( )
saveConfigOnConfigLoad ( Varien_Event_Observer $observer ) * On controller_action_predispatch Takes the file and the configuration field and saves the current file data to the database before the field is loaded
seoHeading ( $observer ) * Replaces category name with heading on category pages
setConfigMetaDescription ( $pagetype )
setConfigTitle ( $pagetype )
setDescription ( $observer ) * On relevant pages, will override the meta desc with the fallback if one isn't set in the editor
setMandatoryAltTag ( $observer )
setTitle ( $observer ) * On relevant pages, will override the page title with the fallback if one isn't set in the editor
setUA ( $observer ) * Sets Google Analytics to use UA when the version is less that 1.9.1 and it is set in the config
writeToFileOnConfigSave ( Varien_Event_Observer $observer ) * On admin_system_config_changed_section_{crearerobots/crearehtaccess} Takes the file, post data and the configuration field and writes the post data to the file.

Приватные методы

Метод Описание
redirect301 ( $url, $name )
setRobots ( $layout )

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

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

public _construct ( )

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

* The function to remove the meta keywords tag
public applyTag ( $observer )

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

public changeRobots ( $observer )

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

* Adds the page title and meta description to the contact page's
public contactsMetaData ( Varien_Event_Observer $observer )
$observer Varien_Event_Observer

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

public discontinuedCheck ( $observer )

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

* If set, replaces the homepage title with the definitive one set in the config
public forceHomepageTitle ( $observer )

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

* Checks if the page loaded is the canonical version, if not redirects to that version
public forceProductCanonical ( Varien_Event_Observer $observer )
$observer Varien_Event_Observer

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

public getDefaultTitle ( )

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

public getDescription ( )

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

public getTitle ( )

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

public metaHelper ( )

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

* On controller_action_predispatch Takes the file and the configuration field and saves the current file data to the database before the field is loaded
public saveConfigOnConfigLoad ( Varien_Event_Observer $observer )
$observer Varien_Event_Observer

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

* Replaces category name with heading on category pages
public seoHeading ( $observer )

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

public setConfigMetaDescription ( $pagetype )

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

public setConfigTitle ( $pagetype )

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

* On relevant pages, will override the meta desc with the fallback if one isn't set in the editor
public setDescription ( $observer )

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

public setMandatoryAltTag ( $observer )

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

* On relevant pages, will override the page title with the fallback if one isn't set in the editor
public setTitle ( $observer )

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

* Sets Google Analytics to use UA when the version is less that 1.9.1 and it is set in the config
public setUA ( $observer )

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

* On admin_system_config_changed_section_{crearerobots/crearehtaccess} Takes the file, post data and the configuration field and writes the post data to the file.
public writeToFileOnConfigSave ( Varien_Event_Observer $observer )
$observer Varien_Event_Observer

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

$helper защищенное свойство

protected $helper