/** * @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; }
/** * 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(); }
/** * @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; }
/** * 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; }