Mage_Checkout_Block_Agreements Class Reference

Inheritance diagram for Mage_Checkout_Block_Agreements:

Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getAgreements ()


Detailed Description

Definition at line 3 of file Agreements.php.


Member Function Documentation

getAgreements (  ) 

Definition at line 5 of file Agreements.php.

00006     {
00007         if (!$this->hasAgreements()) {
00008             if (!Mage::getStoreConfigFlag('checkout/options/enable_agreements')) {
00009                 $agreements = array();
00010             } else {
00011                 $agreements = Mage::getModel('checkout/agreement')->getCollection()
00012                     ->addStoreFilter(Mage::app()->getStore()->getId())
00013                     ->addFieldToFilter('is_active', 1);
00014             }
00015             $this->setAgreements($agreements);
00016         }
00017         return $this->getData('agreements');
00018     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:49 2009 for Magento by  doxygen 1.5.8