Ejemplo n.º 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;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }