| 1 | <?php |
||
| 11 | class Page |
||
| 12 | { |
||
| 13 | use LoggedClassTrait; |
||
| 14 | |||
| 15 | protected $contents; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Sets the Page's contents to the contents of a file |
||
| 19 | * |
||
| 20 | * @param string $contents The path to the file containing the page's contents |
||
| 21 | * @return bool Returns true if the file exists |
||
| 22 | * Returls false if the file does not exist |
||
| 23 | */ |
||
| 24 | 3 | public function setContents($contents) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Echos the contents of a supplied page file |
||
| 39 | * |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | 1 | public function displayPage() |
|
| 46 | } |