示例#1
0
 /**
  * Perform the joins necessary to create a full category record
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->getSelect()->where('taxonomy.taxonomy=?', 'category');
     if (Mage::helper('wordpress')->isPluginEnabled('taxonomy-terms-order', false)) {
         $this->getSelect()->order('main_table.term_order ASC');
     } else {
         $this->getSelect()->order('main_table.name ASC');
     }
     return $this->getSelect();
 }
示例#2
0
 /**
  * Perform the joins necessary to create a full category record
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->getSelect()->where('taxonomy.taxonomy=?', 'link_category');
     return $this->getSelect();
 }
示例#3
0
 /**
  * Perform the joins necessary to create a full category record
  */
 protected function _initSelect()
 {
     parent::_initSelect();
     $this->getSelect()->where('taxonomy.taxonomy=?', 'post_tag');
     return $this->getSelect();
 }