Mage_Api_Model_Mysql4_Rules_Collection Class Reference

Inheritance diagram for Mage_Api_Model_Mysql4_Rules_Collection:

Mage_Core_Model_Mysql4_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 getByRoles ($id)
 addSortByLength ()

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 27 of file Collection.php.


Member Function Documentation

_construct (  )  [protected]

Initialization here

Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.

Definition at line 29 of file Collection.php.

00030     {
00031         $this->_init('api/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     }


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

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