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_Captcha_Block_Captcha
  • Mage_Captcha_Block_Captcha_Zend
  • Mage_Captcha_Helper_Data
  • Mage_Captcha_Model_Config_Font
  • Mage_Captcha_Model_Config_Form_Abstract
  • Mage_Captcha_Model_Config_Form_Backend
  • Mage_Captcha_Model_Config_Form_Frontend
  • Mage_Captcha_Model_Config_Mode
  • Mage_Captcha_Model_Observer
  • Mage_Captcha_Model_Resource_Log
  • Mage_Captcha_Model_Zend

Interfaces

  • Mage_Captcha_Model_Interface
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Captcha_Model_Resource_Log

Log Attempts resource

Mage_Core_Model_Resource_Abstract
Extended by Mage_Core_Model_Resource_Db_Abstract
Extended by Mage_Captcha_Model_Resource_Log
Package: Mage\Captcha
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/Captcha/Model/Resource/Log.php
Methods summary
protected
# _construct( )

Define main table

Define main table

public Mage_Captcha_Model_Resource_Log
# logAttempt( string|null $login )

Save or Update count Attempts

Save or Update count Attempts

Parameters

$login
string|null
$login

Returns

Mage_Captcha_Model_Resource_Log
public Mage_Captcha_Model_Resource_Log
# deleteUserAttempts( string $login )

Delete User attempts by login

Delete User attempts by login

Parameters

$login
string
$login

Returns

Mage_Captcha_Model_Resource_Log
public null|integer
# countAttemptsByRemoteAddress( )

Get count attempts by ip

Get count attempts by ip

Returns

null|integer
public null|integer
# countAttemptsByUserLogin( string $login )

Get count attempts by user login

Get count attempts by user login

Parameters

$login
string
$login

Returns

null|integer
public
# deleteOldAttempts( )

Delete attempts with expired in update_at time

Delete attempts with expired in update_at time

Methods inherited from Mage_Core_Model_Resource_Db_Abstract
_afterDelete(), _afterLoad(), _afterSave(), _beforeDelete(), _beforeSave(), _checkUnique(), _getConnection(), _getLoadSelect(), _getReadAdapter(), _getWriteAdapter(), _init(), _initUniqueFields(), _prepareDataForSave(), _prepareValueForSave(), _serializeFields(), _setMainTable(), _setResource(), addUniqueField(), afterLoad(), delete(), getChecksum(), getIdFieldName(), getMainTable(), getReadConnection(), getTable(), getUniqueFields(), getValueTable(), hasDataChanged(), load(), resetUniqueField(), save(), unserializeFields()
Methods inherited from Mage_Core_Model_Resource_Abstract
__construct(), _prepareDataForTable(), _prepareTableValueForSave(), _serializeField(), _unserializeField(), addCommitCallback(), beginTransaction(), commit(), formatDate(), mktime(), rollBack()
Constants summary
integer TYPE_REMOTE_ADDRESS 1
#

Type Remote Address

Type Remote Address

integer TYPE_LOGIN 2
#

Type User Login Name

Type User Login Name

Properties inherited from Mage_Core_Model_Resource_Db_Abstract
$_connections, $_fieldsForUpdate, $_idFieldName, $_isPkAutoIncrement, $_mainTable, $_mainTableFields, $_resourceModel, $_resourcePrefix, $_resources, $_serializableFields, $_tables, $_uniqueFields, $_useIsObjectNew
Properties inherited from Mage_Core_Model_Resource_Abstract
$_commitCallbacks
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0