コード例 #1
0
 /**
  * Fill data to labels fields on labels tab.
  *
  * @param array $fields
  * @param Element|null $element
  * @return $this
  */
 public function fillFormTab(array $fields, Element $element = null)
 {
     parent::fillFormTab($fields, $element);
     $webSiteField = $this->_rootElement->find($this->websiteField, Locator::SELECTOR_CSS, 'multiselect');
     if ($webSiteField->isVisible()) {
         $webSiteFieldValue = $webSiteField->getValue();
         if (empty($webSiteFieldValue)) {
             $webSiteField->setValue('Main Website');
         }
     }
     return $this;
 }
コード例 #2
0
ファイル: Bundle.php プロジェクト: cewolf2002/magento
 /**
  * Get data from fields on bundle items tab.
  *
  * @param array|null $fields
  * @param Element|null $element
  * @return array
  */
 public function getDataFormTab($fields = null, Element $element = null)
 {
     $newFields = [];
     if (isset($fields['bundle_selections'])) {
         foreach ($fields['bundle_selections']['value'] as $key => $bundleOption) {
             $bundleOption = $this->prepareBundleOptions($bundleOption);
             $newFields['bundle_selections'][$key] = $this->getBundleOptionBlock($key)->getOptionData($bundleOption);
         }
         unset($fields['bundle_selections']);
     }
     return array_merge($newFields, parent::getDataFormTab($fields, $element));
 }
コード例 #3
0
ファイル: Content.php プロジェクト: QiuLihua83/magento-ee
 /**
  * Fill data to fields on tab.
  *
  * @param array $fields
  * @param SimpleElement|null $element
  * @return $this
  */
 public function fillFormTab(array $fields, SimpleElement $element = null)
 {
     $this->hideEditor();
     parent::fillFormTab($fields, $element);
     return $this;
 }
コード例 #4
0
ファイル: ReviewDetails.php プロジェクト: cewolf2002/magento
 /**
  * Get data of tab.
  *
  * @param array|null $fields
  * @param Element|null $element
  * @return array
  */
 public function getDataFormTab($fields = null, Element $element = null)
 {
     return array_merge(parent::getDataFormTab($fields, $element), ['customer' => $this->getCustomer()]);
 }
コード例 #5
0
 /**
  * Fill data to fields on tab.
  *
  * @param array $fields
  * @param Element|null $element
  * @return $this
  */
 public function fillFormTab(array $fields, Element $element = null)
 {
     parent::fillFormTab($fields, $element);
     $this->clickContinue();
 }