Rev | Line | |
---|
[7620] | 1 | <?
|
---|
| 2 | /*
|
---|
| 3 | * Project: NodeMap2.0
|
---|
| 4 | * File: FileHandler.class.php
|
---|
| 5 | * Purpose: Checking and reading node files from the server
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | class FileHandler {
|
---|
[7621] | 9 | private $file;
|
---|
| 10 |
|
---|
| 11 | /*
|
---|
| 12 | * Function: __construct (constructor)
|
---|
| 13 | * Parameters: string $filename
|
---|
| 14 | * Function: Handling with a node file
|
---|
| 15 | */
|
---|
| 16 | public function __construct(string $filename) {
|
---|
| 17 | try {
|
---|
| 18 | $this->file = fopen($filename);
|
---|
| 19 | } catch (Exception $err) {
|
---|
| 20 | // TODO: Better error description
|
---|
| 21 | trigger_error();
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
[7620] | 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.