eZPublish  3.8
visual/templateedit.php File Reference

Variables

 $codec =& eZTextCodec::instance( $templateCharset, $outputCharset, false )
 
if($module->isCurrentAction(
'Save')) if($module->
isCurrentAction( 'Discard')) 
$fileName = $template
 
 $http =& eZHTTPTool::instance()
 
 $i = 0
 
 $i18nConfig =& eZINI::instance( 'i18n.ini' )
 
if($http->hasPostVariable(
'Cancel')) 
$ini =& eZINI::instance()
 
 $isExistingTemplate = false
 
 $module =& $Params["Module"]
 
foreach($overrideArray as
$overrideSetting) if($isExistingTemplate==false) 
$originalTemplate = false
 
 $outputCharset = eZTextCodec::internalCharset()
 
 $overrideArray = eZTemplateDesignResource::overrideArray( $siteAccess )
 
 $parameters =& $Params["Parameters"]
 
 $Result = array()
 
 $Result ['path']
 
 $Result ['content'] =& $tpl->fetch( "design:visual/templateedit.tpl" )
 
foreach($parameters as $param) $siteAccess = $Params['SiteAccess']
 
 $template = ""
 
foreach($overrideArray as
$overrideSetting) 
$templateConfig =& eZINI::instance( 'template.ini' )
 
 $templateContent = file_get_contents( $fileName )
 
 $tpl =& templateInit()
 
if(!is_readable($fileName)) if(!is_writable($fileName)) else
 
if(preg_match('|{\*\?template.*charset=( else [a-zA-Z0-9-]*).*\?\*}|', $templateContent, $matches))
 

Variable Documentation

if ($module->isCurrentAction( 'Save')) if ($module->isCurrentAction( 'Discard')) $fileName = $template
$i = 0
$i18nConfig =& eZINI::instance( 'i18n.ini' )
if ($http->hasPostVariable( 'Cancel')) $ini =& eZINI::instance()
$isExistingTemplate = false
$module =& $Params["Module"]
foreach ($overrideArray as $overrideSetting) if ($isExistingTemplate==false) $originalTemplate = false
$parameters =& $Params["Parameters"]
$Result = array()
$Result['path']
Initial value:
= array( array( 'url' => false,
'text' => ezi18n( 'kernel/design', 'Template edit' ) ) )
$Result['content'] =& $tpl->fetch( "design:visual/templateedit.tpl" )
else $siteAccess = $Params['SiteAccess']
$template = ""
foreach ($overrideArray as $overrideSetting) $templateConfig =& eZINI::instance( 'template.ini' )
$templateContent = file_get_contents( $fileName )
$tpl =& templateInit()
if (!is_readable($fileName)) if (!is_writable($fileName)) else
Initial value:
{
$tpl->setVariable( 'is_writable', true )
$tpl
Definition: eztc.php:141
if (preg_match('|{\*\?template.*charset=( else[a-zA-Z0-9-]*).*\?\*}|', $templateContent, $matches))
Initial value:
{
$templateCharset = $templateConfig->variable( 'CharsetSettings', 'DefaultTemplateCharset')
foreach($overrideArray as $overrideSetting) $templateConfig
Definition: visual/templateedit.php:108