Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Lzw.php
Go to the documentation of this file.
1 <?php
24 #require_once 'Zend/Pdf/Filter/Compression.php';
25 
34 {
42  private static function _getEarlyChangeValue($params)
43  {
44  if (isset($params['EarlyChange'])) {
45  $earlyChange = $params['EarlyChange'];
46 
47  if ($earlyChange != 0 && $earlyChange != 1) {
48  #require_once 'Zend/Pdf/Exception.php';
49  throw new Zend_Pdf_Exception('Invalid value of \'EarlyChange\' decode param - ' . $earlyChange . '.' );
50  }
51  return $earlyChange;
52  } else {
53  return 1;
54  }
55  }
56 
57 
66  public static function encode($data, $params = null)
67  {
68  if ($params != null) {
70  }
71 
72  #require_once 'Zend/Pdf/Exception.php';
73  throw new Zend_Pdf_Exception('Not implemented yet');
74  }
75 
84  public static function decode($data, $params = null)
85  {
86  #require_once 'Zend/Pdf/Exception.php';
87  throw new Zend_Pdf_Exception('Not implemented yet');
88 
89  if ($params !== null) {
91  } else {
92  return $data;
93  }
94  }
95 }
static encode($data, $params=null)
Definition: Lzw.php:66
static decode($data, $params=null)
Definition: Lzw.php:84
static _applyEncodeParams($data, $params)
static _applyDecodeParams($data, $params)
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18