interface Sivujetti\Page\Entities\Page
Entiteettiluokka sivuille.
Synopsis
class Page extends \stdClass {
/* Vakiot */
const STATUS_PUBLISHED = 0;
const STATUS_DRAFT = 1;
/* Muuttujat */
public string $slug;
public string $path;
public int $level;
public string $title;
public ?object $meta;
public string $id;
public string $type;
public Block[] $blocks;
public int $status;
public int $createdAt;
public int $lastUpdatedAt;
public Layout $layout;
}
Vakiot
- STATUS_PUBLISHED
- ...
- STATUS_DRAFT
- ...
Muuttujat
- slug
- Example: "/" or "/some-page"
- path
- ...
- level
- 1 = top level, 2 = 2nd. level etc.
- title
- ...
- meta
- {description: ?string}
- layoutId
- Example "1"
- id
- Push id, e.g. "-NGLshqi40f1ZK1ua74k"
- type
- ...
- blocks
- ...
- status
- self::STATUS_*
- createdAt
- Unix timestamp
- lastUpdatedAt
- Unix timestamp. If new page, has the same value as createdAt.
- layout
- ...