*/ class Mage_Api2_Model_Resource_Acl_Global_Rule_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract { /** * Initialize collection model * * @return void */ protected function _construct() { $this->_init('api2/acl_global_rule'); } /** * Add filtering by role ID * * @param int $roleId * @return Mage_Api2_Model_Resource_Acl_Global_Rule_Collection */ public function addFilterByRoleId($roleId) { $this->addFilter('role_id', $roleId, 'public'); return $this; } }