Esempio n. 1
0
 /**
  * Define specific data structure which will be sent in the triggering event (model.selected)
  *
  * @param mixed $item Model item
  *
  * @return string
  */
 protected function defineDataItem($item)
 {
     $data = parent::defineDataItem($item);
     $data['selected_value'] = $item->getName();
     $data['selected_sku'] = $item->getSKU();
     return $data;
 }
Esempio n. 2
0
 /**
  * Define specific data structure which will be sent in the triggering event (model.selected)
  *
  * @param type $item
  *
  * @return string
  */
 protected function defineDataItem($item)
 {
     $data = parent::defineDataItem($item);
     $data['selected_value'] = $item->getName();
     $data['selected_login'] = '******' . $item->getLogin() . '>';
     return $data;
 }
Esempio n. 3
0
 /**
  * Define specific data structure which will be sent in the triggering event (model.selected)
  *
  * @param type $item
  *
  * @return string
  */
 protected function defineDataItem($item)
 {
     $data = parent::defineDataItem($item);
     $data['selected_value'] = $item->getCountry();
     return $data;
 }