コード例 #1
0
ファイル: AttributeSet.php プロジェクト: aiesh/magento2
 /**
  * Set value
  *
  * @param string $value
  * @return void
  */
 public function setValue($value)
 {
     if ($value !== $this->find($this->actionToggle)->getText()) {
         $this->find($this->actionToggle)->click();
         parent::setValue($value);
     }
 }
コード例 #2
0
 /**
  * Set value
  *
  * @param array|string $values
  * @return void
  */
 public function setValue($values)
 {
     $this->_eventManager->dispatchEvent(['set_value'], [__METHOD__, $this->getAbsoluteSelector()]);
     $this->clear();
     foreach ((array) $values as $value) {
         if (!$this->isChoice($value)) {
             parent::setValue($value);
         }
     }
 }
コード例 #3
0
ファイル: Search.php プロジェクト: aiesh/magento2
 /**
  * Set value
  *
  * @param string $value
  * @return void
  */
 public function setValue($value)
 {
     $this->find($this->actionToggle)->click();
     parent::setValue($value);
 }