Mage_Catalog_Model_Product_Flat_Flag Class Reference

Inheritance diagram for Mage_Catalog_Model_Product_Flat_Flag:

Mage_Core_Model_Flag Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 getFlagData ()
 getIsBuilt ()
 setIsBuild ($flag)

Protected Attributes

 $_flagCode = 'catalog_product_flat'


Detailed Description

Definition at line 35 of file Flag.php.


Member Function Documentation

getFlagData (  ) 

Retrieve flag data array

Returns:
array

Reimplemented from Mage_Core_Model_Flag.

Definition at line 49 of file Flag.php.

00049                                   {
00050         $flagData = parent::getFlagData();
00051         if (!is_array($flagData)) {
00052             $flagData = array();
00053             $this->setFlagData($flagData);
00054         }
00055         return $flagData;
00056     }

getIsBuilt (  ) 

Retrieve Catalog Product Flat is built flag

Returns:
bool

Definition at line 63 of file Flag.php.

00063                                  {
00064         $flagData = $this->getFlagData();
00065         if (!isset($flagData['is_built'])) {
00066             $flagData['is_built'] = false;
00067             $this->setFlagData($flagData);
00068         }
00069         return (bool)$flagData['is_built'];
00070     }

setIsBuild ( flag  ) 

Set Catalog Product Flat is built flag

Parameters:
bool $flag
Returns:
Mage_Catalog_Model_Product_Flat_Flag

Definition at line 78 of file Flag.php.

00078                                       {
00079         $flagData = $this->getFlagData();
00080         $flagData['is_built'] = (bool)$flag;
00081         $this->setFlagData($flagData);
00082         return $this;
00083     }


Member Data Documentation

$_flagCode = 'catalog_product_flat' [protected]

Reimplemented from Mage_Core_Model_Flag.

Definition at line 42 of file Flag.php.


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

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