Smarty_Internal_Resource_File Klassenreferenz

Smarty_Internal_Resource_File Klassenreferenz
Klassendiagramm für Smarty_Internal_Resource_File:
Zusammengehörigkeiten von Smarty_Internal_Resource_File:

Öffentliche Methoden

 normalizePath ($path)
 
 populate (Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
 
 populateTimestamp (Smarty_Template_Source $source)
 
 getContent (Smarty_Template_Source $source)
 
 getBasename (Smarty_Template_Source $source)
 
- Öffentliche Methoden geerbt von Smarty_Resource
 getContent (Smarty_Template_Source $source)
 
 populate (Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
 
 populateTimestamp (Smarty_Template_Source $source)
 
 buildUniqueResourceName (Smarty $smarty, $resource_name, $isConfig=false)
 
 getBasename (Smarty_Template_Source $source)
 

Geschützte Methoden

 buildFilepath (Smarty_Template_Source $source, Smarty_Internal_Template $_template=null)
 
 fileExists (Smarty_Template_Source $source, $file)
 

Weitere Geerbte Elemente

- Öffentliche, statische Methoden geerbt von Smarty_Resource
static load (Smarty $smarty, $type)
 
static parseResourceName ($resource_name, $default_resource)
 
static getUniqueTemplateName ($template, $template_resource)
 
static source (Smarty_Internal_Template $_template=null, Smarty $smarty=null, $template_resource=null)
 
- Datenfelder geerbt von Smarty_Resource
 $uncompiled = false
 
 $recompiled = false
 
 $handler = null
 
 $compiler_class = 'Smarty_Internal_SmartyTemplateCompiler'
 
 $template_lexer_class = 'Smarty_Internal_Templatelexer'
 
 $template_parser_class = 'Smarty_Internal_Templateparser'
 
- Statische öffentliche Attribute geerbt von Smarty_Resource
static $sources = array()
 
static $compileds = array()
 
- Statische, geschützte Attribute geerbt von Smarty_Resource
static $sysplugins
 

Ausführliche Beschreibung

Definiert in Zeile 18 der Datei smarty_internal_resource_file.php.

Dokumentation der Elementfunktionen

buildFilepath ( Smarty_Template_Source  $source,
Smarty_Internal_Template  $_template = null 
)
protected

build template filepath by traversing the template_dir array

Parameter
Smarty_Template_Source$sourcesource object
Smarty_Internal_Template$_templatetemplate object
Rückgabe
string fully qualified filepath
Ausnahmebehandlung
SmartyException

Definiert in Zeile 29 der Datei smarty_internal_resource_file.php.

Benutzt Smarty_Internal_Get_Include_Path\getIncludePath() und normalizePath().

Wird benutzt von populate().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

fileExists ( Smarty_Template_Source  $source,
  $file 
)
protected

test is file exists and save timestamp

Parameter
Smarty_Template_Source$sourcesource object
string$filefile name
Rückgabe
bool true if file exists

Definiert in Zeile 142 der Datei smarty_internal_resource_file.php.

getBasename ( Smarty_Template_Source  $source)

Determine basename for compiled filename

Parameter
Smarty_Template_Source$sourcesource object
Rückgabe
string resource's basename

Definiert in Zeile 212 der Datei smarty_internal_resource_file.php.

getContent ( Smarty_Template_Source  $source)

Load template's source from file into current template object

Parameter
Smarty_Template_Source$sourcesource object
Rückgabe
string template source
Ausnahmebehandlung
SmartyExceptionif source cannot be loaded

Definiert in Zeile 194 der Datei smarty_internal_resource_file.php.

normalizePath (   $path)

Normalize path

  • remove /./ and /../
  • make it absolute
Parameter
string$pathfile path
Rückgabe
string

Definiert in Zeile 122 der Datei smarty_internal_resource_file.php.

Wird benutzt von buildFilepath().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

populate ( Smarty_Template_Source  $source,
Smarty_Internal_Template  $_template = null 
)

populate Source Object with meta data from Resource

Parameter
Smarty_Template_Source$sourcesource object
Smarty_Internal_Template$_templatetemplate object

Definiert in Zeile 154 der Datei smarty_internal_resource_file.php.

Benutzt buildFilepath().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

populateTimestamp ( Smarty_Template_Source  $source)

populate Source Object with timestamp and exists from Resource

Parameter
Smarty_Template_Source$sourcesource object

Definiert in Zeile 178 der Datei smarty_internal_resource_file.php.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.