Mage_Core_Model_Mysql4_Url_Rewrite Class Reference

Inheritance diagram for Mage_Core_Model_Mysql4_Url_Rewrite:

Mage_Core_Model_Mysql4_Abstract Mage_Core_Model_Resource_Abstract

List of all members.

Protected Member Functions

 _construct ()
 _initUniqueFields ()
 _getLoadSelect ($field, $value, $object)

Protected Attributes

 $_tagTable


Detailed Description

Definition at line 36 of file Rewrite.php.


Member Function Documentation

_construct (  )  [protected]

Resource initialization

Reimplemented from Mage_Core_Model_Resource_Abstract.

Definition at line 40 of file Rewrite.php.

00041     {
00042         $this->_init('core/url_rewrite', 'url_rewrite_id');
00043         $this->_tagTable = $this->getTable('url_rewrite_tag');
00044     }

_getLoadSelect ( field,
value,
object 
) [protected]

Retrieve select object for load object data

Parameters:
string $field
mixed $value
Returns:
Zend_Db_Select

Reimplemented from Mage_Core_Model_Mysql4_Abstract.

Definition at line 73 of file Rewrite.php.

00074     {
00075         $select = parent::_getLoadSelect($field, $value, $object);
00076 
00077         if (!is_null($object->getStoreId())) {
00078             $select->where('store_id=0 or store_id=?', $object->getStoreId());
00079             $select->order('store_id', 'desc');
00080         }
00081 
00082         return $select;
00083     }

_initUniqueFields (  )  [protected]

Initialize unique fields

Returns:
Mage_Core_Model_Mysql4_Abstract

Reimplemented from Mage_Core_Model_Mysql4_Abstract.

Definition at line 51 of file Rewrite.php.

00052     {
00053         $this->_uniqueFields = array(
00054             array(
00055                 'field' => array('id_path','store_id','is_system'),
00056                 'title' => Mage::helper('core')->__('Id path for specified store')
00057             ),
00058             array(
00059                  'field' => array('request_path','store_id'),
00060                  'title' => Mage::helper('core')->__('Request path for specified store'),
00061             )
00062         );
00063         return $this;
00064     }


Member Data Documentation

$_tagTable [protected]

Definition at line 38 of file Rewrite.php.


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

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