Page::__get()

Gets a page property.

Table of Contents
  1. Description
  2. Example

Description

Page::__get(string $key): mixed;

This method will be called when a public property is not available on class Page. By default, this method will first try to find an existing public method and call it with empty argument. If none of the previous cases are passed, this method will invoke the Page::__call() method.

Example

$page = new Page('.\lot\page\article.page');

$asdf = $page->asdf; // Returns `null` because property `asdf` does not exist
$name = $page->time; // Returns `$page->time()` because method `time()` does exist
$title = $page->title; // Returns the value returned from the result of calling the method `__call('title')`

Page::__get()

Gets a page property.

Page::size()

Gets the file sizes in human readable string format.