Public Member Functions | |
getByRoles ($id) | |
addSortByLength () | |
Protected Member Functions | |
_construct () |
Definition at line 27 of file Collection.php.
_construct | ( | ) | [protected] |
Initialization here
Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.
Definition at line 29 of file Collection.php.
00030 { 00031 $this->_init('admin/rules'); 00032 }
addSortByLength | ( | ) |
Definition at line 40 of file Collection.php.
00041 { 00042 $this->getSelect()->from('', array('length' => 'LENGTH(resource_id)')) 00043 ->order('length desc'); 00044 return $this; 00045 }
getByRoles | ( | $ | id | ) |
Definition at line 34 of file Collection.php.
00035 { 00036 $this->getSelect()->where("role_id = ?", (int)$id); 00037 return $this; 00038 }