Protected Member Functions | |
_construct () | |
_initUniqueFields () | |
_getLoadSelect ($field, $value, $object) | |
Protected Attributes | |
$_tagTable |
Definition at line 36 of file Rewrite.php.
_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
string | $field | |
mixed | $value |
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
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 }
$_tagTable [protected] |
Definition at line 38 of file Rewrite.php.