public function getBarcode() { $this->_barcode = parent::getBarcode(); if (!$this->_barcode) { $filter = '//div[@class="more"]/span/text()||1'; $this->_barcode = $this->_getRegexpInfo($filter, $this->getContent()); } return $this->_barcode; }
public function getBarcode() { $str = parent::getBarcode(); $this->_barcode = date('Y-m-d', strtotime("+" . $str . "second")); return $this->_barcode; }