예제 #1
0
 /**
  * Init object
  */
 public function __construct()
 {
     $this->_sender = $this->_getSender();
     $this->_recipients = [['email' => '*****@*****.**', 'name' => 'test']];
     $this->_messageSubject = 'Letual products ' . Time::getDateAndTime(Time::DATE_FORMAT_FOR_MAIL_SUBJECT);
     $this->_messageText = 'See attached file';
 }
예제 #2
0
 /**
  * Init object
  */
 public function __construct()
 {
     $this->_filePath = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Export' . DIRECTORY_SEPARATOR . 'letual_products_' . Time::getDateAndTime(Time::DATE_FORMAT_FOR_FILE);
     $this->_lineHeaders = ['Бренд', 'Артикул', 'Название', 'Цена от', 'Цена до', 'В корзину', 'Предзаказ', 'Ограниченное количество'];
 }
예제 #3
0
 /**
  * Get line
  *
  * @param null       $prefix   Prefix
  * @param string     $value    Value
  * @param bool|false $lastLine Is last line
  *
  * @return string
  */
 public function getLine($prefix = null, $value = null, $lastLine = false)
 {
     if (is_null($value)) {
         $value = Time::getDateAndTime();
     }
     $line = $prefix . ' ' . $value . "\n";
     if ($lastLine) {
         $line .= "\n";
     }
     return $line;
 }