nur-sery/nur_src/v/base/AbstractPage.php

35 lines
858 B
PHP
Raw Normal View History

2023-12-03 22:10:18 +04:00
<?php
namespace nur\v\base;
use nur\A;
use nur\v\model\IPage;
abstract class AbstractPage extends ComponentPrintable implements IPage {
/** @see AbstractPageContainer::CONFIGURE_OPTIONS() */
function CONFIGURE_OPTIONS(): ?array {
return static::CONFIGURE_OPTIONS;
} const CONFIGURE_OPTIONS = null;
/** @see AbstractPageContainer::SELF() */
function SELF(): ?string {
return static::SELF;
} const SELF = null;
/** @see AbstractPageContainer::TITLE() */
function TITLE(): ?string {
return static::TITLE;
} const TITLE = null;
function beforeConfig(array &$config): void {
A::merge_nz($config, [
"configure_options" => $this->CONFIGURE_OPTIONS(),
"self" => $this->SELF(),
"title" => $this->TITLE(),
]);
}
function getSelfRelativePrefix(): string {
return $this->configGet("prefix");
}
}