Exemple #1
0
 /**
  * @param ElementJBPrice|String $element
  * @param Item                  $item
  * @param array                 $options
  */
 public function __construct($element, Item $item = null, $options = array())
 {
     parent::__construct($element, $item, $options);
     $this->_param_id = array_key_exists('paramId', $options) ? $options['paramId'] : null;
     $this->_helper = $this->app->jbprice;
     $this->_cell = $this->app->jbcsvcell;
 }
Exemple #2
0
 /**
  * Export data to CSV cell
  * @return string
  */
 public function toCSV()
 {
     $element = $this->_item->elements[$this->_identifier];
     foreach ($element as $key => $self) {
         $element[$key] = isset($self['value']) ? array('value' => rtrim($self['value'], '/')) : null;
     }
     return parent::toCSV();
 }
Exemple #3
0
 /**
  * @param Element|String $element
  * @param Item           $item
  * @param array          $options
  */
 public function __construct($element, Item $item = null, $options = array())
 {
     parent::__construct($element, $item, $options);
     $this->_jbcolor = $this->app->jbcolor;
 }
Exemple #4
0
 /**
  * Constructor
  * @param JBCartElementPrice $element
  * @param ElementJBPrice     $jbPrice
  * @param array              $options
  */
 public function __construct($element, $jbPrice, $options = array())
 {
     parent::__construct($jbPrice, $jbPrice->getItem(), $options);
     $this->_param = $element;
 }