PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
tablepress / libraries / vendor / PhpSpreadsheet / Shared / OLE / PPS / File.php

File.php in TablePress – Tables in WordPress made easy 3.4, at libraries/vendor/PhpSpreadsheet/Shared/OLE/PPS/File.php

63 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace TablePress\PhpOffice\PhpSpreadsheet\Shared\OLE\PPS;
4
5 // vim: set expandtab tabstop=4 shiftwidth=4:
6 // +----------------------------------------------------------------------+
7 // | PHP Version 4 |
8 // +----------------------------------------------------------------------+
9 // | Copyright (c) 1997-2002 The PHP Group |
10 // +----------------------------------------------------------------------+
11 // | This source file is subject to version 2.02 of the PHP license, |
12 // | that is bundled with this package in the file LICENSE, and is |
13 // | available at through the world-wide-web at |
14 // | http://www.php.net/license/2_02.txt. |
15 // | If you did not receive a copy of the PHP license and are unable to |
16 // | obtain it through the world-wide-web, please send a note to |
17 // | [email protected] so we can mail you a copy immediately. |
18 // +----------------------------------------------------------------------+
19 // | Author: Xavier Noguer <[email protected]> |
20 // | Based on OLE::Storage_Lite by Kawai, Takanori |
21 // +----------------------------------------------------------------------+
22 //
23 use TablePress\PhpOffice\PhpSpreadsheet\Shared\OLE;
24 use TablePress\PhpOffice\PhpSpreadsheet\Shared\OLE\PPS;
25
26 /**
27 * Class for creating File PPS's for OLE containers.
28 *
29 * @author Xavier Noguer <[email protected]>
30 */
31 class File extends PPS
32 {
33 /**
34 * The constructor.
35 *
36 * @param string $name The name of the file (in Unicode)
37 *
38 * @see OLE::ascToUcs()
39 */
40 public function __construct(string $name)
41 {
42 parent::__construct(null, $name, OLE::OLE_PPS_TYPE_FILE, null, null, null, null, null, '', []);
43 }
44
45 /**
46 * Initialization method. Has to be called right after OLE_PPS_File().
47 */
48 public function init(): bool
49 {
50 return true;
51 }
52
53 /**
54 * Append data to PPS.
55 *
56 * @param string $data The data to append
57 */
58 public function append(string $data): void
59 {
60 $this->_data .= $data;
61 }
62 }
63