Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setPageTitle example
$shopPage
->
setTpl1Path
(
$data
[
'__page_tpl1path'
]
)
;
$shopPage
->
setTpl2Variable
(
$data
[
'__page_tpl2variable'
]
)
;
$shopPage
->
setTpl2Path
(
$data
[
'__page_tpl2path'
]
)
;
$shopPage
->
setTpl3Variable
(
$data
[
'__page_tpl3variable'
]
)
;
$shopPage
->
setTpl3Path
(
$data
[
'__page_tpl3path'
]
)
;
$shopPage
->
setDescription
(
$data
[
'__page_description'
]
)
;
$shopPage
->
setHtml
(
$data
[
'__page_html'
]
)
;
$shopPage
->
setGrouping
(
explode
(
'|',
$data
[
'__page_grouping'
]
)
)
;
$shopPage
->
setPosition
(
(int)
$data
[
'__page_position'
]
)
;
$shopPage
->
setLink
(
$data
[
'__page_link'
]
)
;
$shopPage
->
setTarget
(
$data
[
'__page_target'
]
)
;
$shopPage
->
setPageTitle
(
$data
[
'__page_page_title'
]
)
;
$shopPage
->
setMetaKeywords
(
$data
[
'__page_meta_keywords'
]
)
;
$shopPage
->
setMetaDescription
(
$data
[
'__page_meta_description'
]
)
;
$shopPage
->
setChildrenCount
(
(int)
$data
[
'__page_children_count'
]
)
;
if
(
isset
(
$data
[
'__page_parent_id'
]
)
&&
$data
[
'__page_parent_id'
]
> 0
)
{
$shopPage
->
setParentId
(
(int)
$data
[
'__page_parent_id'
]
)
;
}
if
(
!
empty
(
$data
[
'__page_changed'
]
)
)
{
$shopPage
->
setChanged
(
DateTime::
createFromFormat
(
'Y-m-d H:i:s',
$data
[
'__page_changed'
]
)
)
;
}