예제 #1
0
 /**
  * @return string
  */
 public function getContent()
 {
     if (null === $this->content) {
         $this->content = Encoding::toUTF8(file_get_contents($this->getPath()));
     }
     return $this->content;
 }
예제 #2
0
 /**
  * 
  * @param string $filePath
  * @param string $format Format pliku wejsciowego
  * @param string $parser identyfikator parsera (nazwa banku)
  */
 public function __construct($filePath, $format, $parser)
 {
     parent::__construct($filePath);
     $this->format_name = (string) $format;
     $this->parser_name = (string) $parser;
     $this->contents = Encoding::toUTF8(parent::getContents());
 }