Documentation

Core_Command_Controller_Default extends Core_Command_Controller
in package

Core command controller.

Tags
subpackage

Core\Command

version
7.x
author

Hostmake LLC

copyright

© 2005-2022 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

$_uri  : string|null
URI
getStructure()  : Structure_Model
Get Structure_Model which satisfy URI $path
getUri()  : Core_Command_Controller
Get URI
setUri()  : Core_Command_Controller
Set URI
showAction()  : Core_Response
Default controller action
_checkCache()  : mixed
Check possibility of using static cache
_iconv()  : string
Convert string to requested character encoding
_safeEmailCallback()  : string
Safe Email Callback Function

Properties

Methods

getStructure()

Get Structure_Model which satisfy URI $path

public getStructure(string $path, int $site_id) : Structure_Model
Parameters
$path : string

URI

$site_id : int

site ID

Return values
Structure_Model

showAction()

Default controller action

public showAction() : Core_Response
Tags
hostcms-event

Core_Command_Controller_Default.onBeforeShowAction

hostcms-event

Core_Command_Controller_Default.onAfterShowAction

hostcms-event

Core_Command_Controller_Default.onBeforeContentCreation

hostcms-event

Core_Command_Controller_Default.onBeforeSetTemplate

Return values
Core_Response

_checkCache()

Check possibility of using static cache

protected _checkCache() : mixed
Return values
mixed

_iconv()

Convert string to requested character encoding

protected _iconv(string $out_charset, string $content) : string
Parameters
$out_charset : string

The output charset.

$content : string

The string to be converted.

Return values
string

_safeEmailCallback()

Safe Email Callback Function

protected static _safeEmailCallback(array<string|int, mixed> $matches) : string
Parameters
$matches : array<string|int, mixed>

matches

Return values
string

Search results