/**
  * Returns value field options for the mass actions block
  *
  * @param string $title field title
  * @return array
  */
 protected function _getValueField($title)
 {
     $field = parent::_getValueField($title);
     $field = $field;
     // prvents Zend Studio validation error
     $field['ampaction_value']['type'] = 'select';
     $field['ampaction_value']['values'] = Mage::getResourceModel('eav/entity_attribute_set_collection')->setEntityTypeFilter(Mage::getModel('catalog/product')->getResource()->getTypeId())->load()->toOptionHash();
     return $field;
 }
示例#2
0
 /**
  * Returns value field options for the mass actions block
  *
  * @param string $title field title
  * @return array
  */
 protected function _getValueField($title)
 {
     $field = parent::_getValueField($title);
     $storeId = (int) Mage::app()->getRequest()->getParam('store', 0);
     if (Mage::getStoreConfig('ampaction/general/categories', $storeId)) {
         $rootId = Mage::app()->getStore($storeId)->getRootCategoryId();
         $field['ampaction_value']['label'] = Mage::helper('ampaction')->__('Category');
         $field['ampaction_value']['type'] = 'select';
         $field['ampaction_value']['values'] = $this->getTree($rootId);
     }
     return $field;
 }
示例#3
0
 /**
  * Returns value field options for the mass actions block
  *
  * @param string $title field title
  * @return array
  */
 protected function _getValueField($title)
 {
     if ($this->isMultiWay()) {
         $title = $title;
         // prevents Zend Studio validtaion error
         return null;
     } else {
         return parent::_getValueField($title);
     }
 }