Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Persistent_Block_Form_Remember
  • Mage_Persistent_Block_Header_Additional
  • Mage_Persistent_Helper_Data
  • Mage_Persistent_Helper_Session
  • Mage_Persistent_IndexController
  • Mage_Persistent_Model_Observer
  • Mage_Persistent_Model_Observer_Session
  • Mage_Persistent_Model_Persistent_Config
  • Mage_Persistent_Model_Resource_Session
  • Mage_Persistent_Model_Session
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Persistent_Model_Session

Persistent Session Model

Varien_Object
Extended by Mage_Core_Model_Abstract
Extended by Mage_Persistent_Model_Session
Package: Mage\Persistent
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Persistent/Model/Session.php
Methods summary
protected
# _construct( )

Define resource model

Define resource model

public Mage_Persistent_Model_Session
# setLoadExpired( boolean $loadExpired = true )

Set if load expired persistent session

Set if load expired persistent session

Parameters

$loadExpired
boolean
$loadExpired

Returns

Mage_Persistent_Model_Session
public boolean
# getLoadExpired( )

Get if model loads expired sessions

Get if model loads expired sessions

Returns

boolean
public string
# getExpiredBefore( integer|string|Mage_Core_Model_Store $store = null )

Get date-time before which persistent session is expired

Get date-time before which persistent session is expired

Parameters

$store
integer|string|Mage_Core_Model_Store
$store

Returns

string
protected Mage_Persistent_Model_Session
# _beforeSave( )

Serialize info for Resource Model to save For new model check and set available cookie key

Serialize info for Resource Model to save For new model check and set available cookie key

Returns

Mage_Persistent_Model_Session

Overrides

Mage_Core_Model_Abstract::_beforeSave()
protected Mage_Persistent_Model_Session
# _afterLoad( )

Set model data from info field

Set model data from info field

Returns

Mage_Persistent_Model_Session

Overrides

Mage_Core_Model_Abstract::_afterLoad()
public Mage_Persistent_Model_Session
# loadByCookieKey( string $key = null )

Get persistent session by cookie key

Get persistent session by cookie key

Parameters

$key
string
$key

Returns

Mage_Persistent_Model_Session
public Mage_Core_Model_Abstract
# loadByCustomerId( integer $id )

Load session model by specified customer id

Load session model by specified customer id

Parameters

$id
integer
$id

Returns

Mage_Core_Model_Abstract
public Mage_Persistent_Model_Session
# deleteByCustomerId( integer $customerId, boolean $clearCookie = true )

Delete customer persistent session by customer id

Delete customer persistent session by customer id

Parameters

$customerId
integer
$customerId
$clearCookie
boolean
$clearCookie

Returns

Mage_Persistent_Model_Session
public Mage_Persistent_Model_Session
# removePersistentCookie( )

Remove persistent cookie

Remove persistent cookie

Returns

Mage_Persistent_Model_Session
public Mage_Persistent_Model_Session
# deleteExpired( null|integer $websiteId = null )

Delete expired persistent sessions for the website

Delete expired persistent sessions for the website

Parameters

$websiteId
null|integer
$websiteId

Returns

Mage_Persistent_Model_Session
protected Mage_Core_Model_Abstract
# _afterDeleteCommit( )

Delete 'persistent' cookie

Delete 'persistent' cookie

Returns

Mage_Core_Model_Abstract

Overrides

Mage_Core_Model_Abstract::_afterDeleteCommit()
public Mage_Persistent_Model_Session
# save( )

Set updated_at to be always changed

Set updated_at to be always changed

Returns

Mage_Persistent_Model_Session

Overrides

Mage_Core_Model_Abstract::save()
Methods inherited from Mage_Core_Model_Abstract
_afterDelete(), _afterSave(), _beforeDelete(), _beforeLoad(), _clearData(), _clearReferences(), _getEventData(), _getResource(), _hasModelChanged(), _init(), _protectFromNonAdmin(), _setResourceModel(), afterCommitCallback(), afterLoad(), cleanModelCache(), clearInstance(), delete(), getCacheIdTags(), getCacheTags(), getCollection(), getEntityId(), getId(), getIdFieldName(), getResource(), getResourceCollection(), getResourceName(), isObjectNew(), load(), setId()
Constants summary
integer KEY_LENGTH 50
#
string COOKIE_NAME 'persistent_shopping_cart'
#
Properties summary
protected array $_unserializableFields array('persistent_id', 'key', 'customer_id', 'website_id', 'info', 'updated_at')
#

Fields which model does not save into info db field

Fields which model does not save into info db field

protected boolean $_loadExpired false
#

If model loads expired sessions

If model loads expired sessions

Properties inherited from Mage_Core_Model_Abstract
$_cacheTag, $_dataSaveAllowed, $_eventObject, $_eventPrefix, $_isObjectNew, $_resource, $_resourceCollectionName, $_resourceName
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0