Class Core_Page
Frontend data, e.g. title, description, template and data hierarchy
Доступные методы:
- fileTimestamp(TRUE|FALSE) использовать в качестве временной метки дату файла, а не дату изменения макета, по умолчанию FALSE.
- compress(TRUE|FALSE) использовать компрессию, по умолчанию TRUE. Требует модуль "Компрессия страниц".
// Get Title $title = Core_Page::instance()->title;
// Set Title Core_Page::instance()->title('New title');
// Get description $description = Core_Page::instance()->description;
// Set description Core_Page::instance()->description('New description');
// Get keywords $keywords = Core_Page::instance()->keywords;
// Set keywords Core_Page::instance()->keywords('New keywords');
// Get Template object $oTemplate = Core_Page::instance()->template; var_dump($oTemplate->id);
// Get Structure object $oStructure = Core_Page::instance()->structure; var_dump($oStructure->id);
// Get Core_Response object $oCore_Response = Core_Page::instance()->response; // Set HTTP status $oCore_Response->status(404);
// Get array of lib params $array = Core_Page::instance()->libParams;
// Get controller object $object = Core_Page::instance()->object; if (is_object(Core_Page::instance()->object) && get_class(Core_Page::instance()->object) == 'Informationsystem_Controller_Show') { $Informationsystem_Controller_Show = Core_Page::instance()->object; }
- Core_Servant_Properties
- Core_Page
Package: HostCMS\Core
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/page.php
Copyright: © 2005-2021 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru
Author: Hostmake LLC
Version: 6.x
Located at core/page.php
Methods summary
public
|
|
public
|
|
public
mixed
|
|
public
|
|
public
array
|
|
public
|
|
public static
object
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
protected
string
|
|
protected
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
Methods inherited from Core_Servant_Properties
__call()
,
__get()
,
__isset()
,
__set()
,
__toString()
,
addAllowedProperties()
,
addAllowedProperty()
,
set()
,
setUnlimitedProperties()
Properties summary
protected
array
|
$_allowedProperties
Allowed object properties |
#
array(
'title',
'description',
'keywords',
'template',
'structure',
'response',
'libParams',
'widgetParams',
'object',
'buildingPage',
'fileTimestamp',
'compress',
'cssCDN',
'jsCDN',
'informationsystemCDN',
'shopCDN',
'structureCDN'
)
|
protected
array
|
$_children
Children entities |
#
array()
|
protected
|
$_currentObject
Current executing object |
#
NULL
|
public static
mixed
|
$instance
The singleton instances. |
#
NULL
|
public
array
|
$css
Linking css |
#
array()
|
public
array
|
$js
Linking js |
#
array()
|
protected
array
|
$_frontendExecutionTimes
frontendExecutionTimes |
#
array()
|