mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-04 06:11:37 +01:00 
			
		
		
		
	- updates for new build system - added missing files - corrections from users - revcheck comments for all files - big up to didou and nuno, brilliant work - make test: ok - make: ok
		
			
				
	
	
		
			82 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			82 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="iso-8859-1"?>
 | 
						|
<!-- $Revision$ -->
 | 
						|
<!-- EN-Revision: 1.2 Maintainer: andreas Status: ready -->
 | 
						|
  <sect1 id="plugins.naming.conventions">
 | 
						|
   <title>Namenskonvention</title>
 | 
						|
   <para>
 | 
						|
    Plugin-Dateien müssen einer klaren Namenskonvention gehorchen,
 | 
						|
    um von Smarty erkannt zu werden.
 | 
						|
   </para>
 | 
						|
   <para>
 | 
						|
    
 | 
						|
    Die Plugin-Dateien müssen wie folgt benannt werden:
 | 
						|
    <blockquote>
 | 
						|
     <para>
 | 
						|
      <filename>
 | 
						|
       <replaceable>type</replaceable>.<replaceable>name</replaceable>.php
 | 
						|
      </filename>
 | 
						|
     </para>
 | 
						|
    </blockquote>
 | 
						|
   </para>
 | 
						|
   <para>
 | 
						|
    
 | 
						|
    Wobei <literal>Typ</literal> einen der folgenden Werte haben kann:
 | 
						|
    <itemizedlist spacing="compact">
 | 
						|
     <listitem><simpara>function</simpara></listitem>
 | 
						|
     <listitem><simpara>modifier</simpara></listitem>
 | 
						|
     <listitem><simpara>block</simpara></listitem>
 | 
						|
     <listitem><simpara>compiler</simpara></listitem>
 | 
						|
     <listitem><simpara>prefilter</simpara></listitem>
 | 
						|
     <listitem><simpara>postfilter</simpara></listitem>
 | 
						|
     <listitem><simpara>outputfilter</simpara></listitem>
 | 
						|
     <listitem><simpara>resource</simpara></listitem>
 | 
						|
     <listitem><simpara>insert</simpara></listitem>
 | 
						|
    </itemizedlist>
 | 
						|
   </para>
 | 
						|
   <para>
 | 
						|
    und <literal>Name</literal> ein erlaubter Identifikator (bestehend
 | 
						|
    aus Buchstaben, Zahlen und Unterstrichen) ist.
 | 
						|
   </para>
 | 
						|
   <para>
 | 
						|
     Ein paar Beispiele: <literal>function.html_select_date.php</literal>,
 | 
						|
     <literal>resource.db.php</literal>,
 | 
						|
      <literal>modifier.spacify.php</literal>.
 | 
						|
   </para>
 | 
						|
   <para>
 | 
						|
    
 | 
						|
    Die Plugin-Funktion innerhalb das Plugin-Datei muss wie folgt benannt werden:
 | 
						|
    <blockquote>
 | 
						|
     <para>
 | 
						|
      <function>smarty_<replaceable>type</replaceable>_<replaceable>name</replaceable></function>
 | 
						|
     </para>
 | 
						|
    </blockquote>
 | 
						|
   </para>
 | 
						|
   <para>
 | 
						|
    <literal>type</literal> und <literal>name</literal> haben die selbe Bedeutung wie bei den Plugin-Dateien.
 | 
						|
   </para>
 | 
						|
   <para>
 | 
						|
    Smarty gibt Fehlermeldungen aus, falls ein aufgerufenes Plugin nicht existiert,
 | 
						|
    oder eine Datei mit falscher Namensgebung im Verzeichnis gefunden wurde.
 | 
						|
   </para>
 | 
						|
</sect1>
 | 
						|
<!-- Keep this comment at the end of the file
 | 
						|
Local variables:
 | 
						|
mode: sgml
 | 
						|
sgml-omittag:t
 | 
						|
sgml-shorttag:t
 | 
						|
sgml-minimize-attributes:nil
 | 
						|
sgml-always-quote-attributes:t
 | 
						|
sgml-indent-step:1
 | 
						|
sgml-indent-data:t
 | 
						|
indent-tabs-mode:nil
 | 
						|
sgml-parent-document:nil
 | 
						|
sgml-default-dtd-file:"../../../../manual.ced"
 | 
						|
sgml-exposed-tags:nil
 | 
						|
sgml-local-catalogs:nil
 | 
						|
sgml-local-ecat-files:nil
 | 
						|
End:
 | 
						|
vim600: syn=xml fen fdm=syntax fdl=2 si
 | 
						|
vim: et tw=78 syn=sgml
 | 
						|
vi: ts=1 sw=1
 | 
						|
-->
 |