summaryrefslogtreecommitdiff
path: root/web/Result.php
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-11-11 08:11:24 +0100
committernavewindre <boneyaard@gmail.com>2025-11-11 08:11:24 +0100
commitf5e29189f70c5c8532916504a1a22f8c586f6e73 (patch)
tree9bf42144e608260527766e128268b380231ed95b /web/Result.php
parent6442494822d12c23cdd609031c4039d3309b64f6 (diff)
new web
Diffstat (limited to 'web/Result.php')
-rw-r--r--web/Result.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/web/Result.php b/web/Result.php
deleted file mode 100644
index 52e4c83..0000000
--- a/web/Result.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * The basic Result class for the Img2Ascii processor.
- *
- * It defines common output functions for the implementing output
- * transformers.
- *
- * (c) 2016 Alex Schenkel
- */
-namespace Img2Ascii;
-
-class Result {
- public $ascii;
- public function __construct(&$ascii) {
- $this->ascii =& $ascii;
- }
-
- public function writeFile($path, $lineEnding = "\n") {
- $fh = fopen($path,'w');
- foreach($this->ascii as $line) {
- foreach($line as $value) {
- $value = $this->transformValue($value);
- fputs($fh, $value);
- }
- fputs($fh,$lineEnding);
-
- }
- fclose($fh);
- return $this;
- }
-}