コード例 #1
0
ファイル: Segment.php プロジェクト: Newsman/Magento-Newsman
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         foreach ($this->_getSegments() as $key => $segmentName) {
             $this->addOption($key, addslashes($segmentName));
         }
     }
     return parent::_toHtml();
 }
コード例 #2
0
 /**
  * Render block HTML
  *
  * @return string
  */
 public function _toHtml()
 {
     if (!$this->getOptions()) {
         if ($this->_addGroupAllOption) {
             $this->addOption(Mage_Customer_Model_Group::CUST_GROUP_ALL, Mage::helper('customer')->__('ALL GROUPS'));
         }
         foreach ($this->_getCustomerGroups() as $groupId => $groupLabel) {
             $this->addOption($groupId, $groupLabel);
         }
     }
     return parent::_toHtml();
 }