eZPublish  4.4
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 = eZTemplate::factory()
 
if(!is_readable($fileName)) if(!is_writable($fileName)) else
 
if(preg_match('|{\*\?template.*charset=( else [a-zA-Z0-9-]*).*\?\*}|', $templateContent, $matches))
 

Variable Documentation

$codec = eZTextCodec::instance( $templateCharset, $outputCharset, false )
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' => ezpI18n::tr( 'kernel/design', 'Template edit' ) ) )
static tr($context, $source, $comment=null, $arguments=null)
Translates the source $source with context $context and optional comment $comment and returns the tra...
Definition: ezpi18n.php:88
$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 )
if (!is_readable($fileName)) if (!is_writable($fileName)) else
Initial value:
{
$tpl->setVariable( 'is_writable', true )
$tpl
Definition: eztc.php:134
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:114