$collection ->getSelect(); |
$collection ->getSelect()->getSize(); |
$collection ->getSelect()->getSelectSql(); |
$collection ->getSelect()->setOrder( $field , $direction ); |
$collection ->getSelect()->setOrder( $field , $condition ); |
$collection ->getSelect()->distinct( $flag ); |
$collection ->getSelect()->getData(); |
$collection ->getSelect()->resetData(); |
$collection ->getSelect()->printLogQuery(true, true); |
More functions below:-
Varien_Data_Collection_Db class extends
Varien_Data_Collection class. Here are some more functions present in
Varien_Data_Collection class:-
$collection ->getSelect()->getCurPage(); |
$collection ->getSelect()->getLastPageNumber(); |
$collection ->getSelect()->getPageSize(); |
$collection ->getSelect()->getSize(); |
$collection ->getSelect()->getFirstItem(); |
$collection ->getSelect()->getLastItem(); |
$collection ->getSelect()->getItems(); |
$collection ->getSelect()->clear(); |
You can also use the select functions as present in
Zend_Db_Select class. This class file is present in
lib/Zend/Db/Select.php
This comment has been removed by the author.
ReplyDeleteThis is a great post. I like this topic.This site has lots of advantage. It helps me in many ways.Thanks for posting this again.
ReplyDeletemagento development company in bangalore
Its was important information various people search for the so this blog used to them so I have a typical this post in my electronic long range interpersonal communication pages.thank you for sharing the enormous information.
ReplyDeleteOutsource ecommerce website development services
Affordable ecommerce development services