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_Cron_Helper_Data
  • Mage_Cron_Model_Mysql4_Schedule
  • Mage_Cron_Model_Mysql4_Schedule_Collection
  • Mage_Cron_Model_Observer
  • Mage_Cron_Model_Resource_Schedule
  • Mage_Cron_Model_Resource_Schedule_Collection
  • Mage_Cron_Model_Schedule

Exceptions

  • Mage_Cron_Exception
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Cron_Model_Schedule

Crontab schedule model

Varien_Object
Extended by Mage_Core_Model_Abstract
Extended by Mage_Cron_Model_Schedule
Package: Mage\Cron
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/Cron/Model/Schedule.php
Methods summary
public
# _construct( )
public
# setCronExpr( mixed $expr )
public boolean
# trySchedule( Varien_Event $time )

Checks the observer's cron expression against time

Checks the observer's cron expression against time

Supports $this->setCronExpr('* 0-5,10-59/5 2-10,15-25 january-june/2 mon-fri')

Parameters

$time
Varien_Event
$event

Returns

boolean
public
# matchCronExpression( mixed $expr, mixed $num )
public
# getNumeric( mixed $value )
public boolean
# tryLockJob( )

Sets a job to STATUS_RUNNING only if it is currently in STATUS_PENDING. Returns true if status was changed and false otherwise.

Sets a job to STATUS_RUNNING only if it is currently in STATUS_PENDING. Returns true if status was changed and false otherwise.

This is used to implement locking for cron jobs.

Returns

boolean
Methods inherited from Mage_Core_Model_Abstract
_afterDelete(), _afterDeleteCommit(), _afterLoad(), _afterSave(), _beforeDelete(), _beforeLoad(), _beforeSave(), _clearData(), _clearReferences(), _getEventData(), _getResource(), _hasModelChanged(), _init(), _protectFromNonAdmin(), _setResourceModel(), afterCommitCallback(), afterLoad(), cleanModelCache(), clearInstance(), delete(), getCacheIdTags(), getCacheTags(), getCollection(), getEntityId(), getId(), getIdFieldName(), getResource(), getResourceCollection(), getResourceName(), isObjectNew(), load(), save(), setId()
Constants summary
string STATUS_PENDING 'pending'
#
string STATUS_RUNNING 'running'
#
string STATUS_SUCCESS 'success'
#
string STATUS_MISSED 'missed'
#
string STATUS_ERROR 'error'
#
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