\Smarty_Internal_Method_RegisterObject

Smarty Method RegisterObject

Smarty::registerObject() method

Summary

Methods
Properties
Constants
registerObject()
$objMap
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$objMap

$objMap : integer

Valid for Smarty and template object

Type

integer

Methods

registerObject()

registerObject(\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty  $obj, string  $object_name, object  $object, array  $allowed_methods_properties = array(), boolean  $format = true, array  $block_methods = array()) : \Smarty|\Smarty_Internal_Template

Registers object to be used in templates

Parameters

\Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
string $object_name
object $object

the referenced PHP object to register

array $allowed_methods_properties

list of allowed methods (empty = all)

boolean $format

smarty argument format, else traditional

array $block_methods

list of block-methods

Throws

\SmartyException

Returns

\Smarty|\Smarty_Internal_Template