PHP Class Creare_CreareSeoCore_Model_Observer

Inheritance: extends Mage_Core_Model_Abstract
Mostrar archivo Open project: adampmoss/CreareSEO

Protected Properties

Property Type Description
$helper

Public Methods

Method Description
_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.

Private Methods

Method Description
redirect301 ( $url, $name )
setRobots ( $layout )

Method Details

_construct() public method

public _construct ( )

applyTag() public method

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

changeRobots() public method

public changeRobots ( $observer )

contactsMetaData() public method

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

discontinuedCheck() public method

public discontinuedCheck ( $observer )

forceHomepageTitle() public method

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

forceProductCanonical() public method

* 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 method

public getDefaultTitle ( )

getDescription() public method

public getDescription ( )

getTitle() public method

public getTitle ( )

metaHelper() public method

public metaHelper ( )

saveConfigOnConfigLoad() public method

* 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() public method

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

setConfigMetaDescription() public method

public setConfigMetaDescription ( $pagetype )

setConfigTitle() public method

public setConfigTitle ( $pagetype )

setDescription() public method

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

setMandatoryAltTag() public method

public setMandatoryAltTag ( $observer )

setTitle() public method

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

setUA() public method

* 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() public method

* 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

Property Details

$helper protected_oe property

protected $helper