cvs: smarty /docs programmers.sgml

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1060294513@cvsserver>
messju		Thu Aug  7 18:15:13 2003 EDT

  Modified files:              
    /smarty/docs	programmers.sgml 
  Log:
  added docs for block-methods of registered objects
  
  
Index: smarty/docs/programmers.sgml
diff -u smarty/docs/programmers.sgml:1.43 smarty/docs/programmers.sgml:1.44
--- smarty/docs/programmers.sgml:1.43	Thu Aug  7 18:02:08 2003
+++ smarty/docs/programmers.sgml	Thu Aug  7 18:15:12 2003
@@ -1998,6 +1998,21 @@
 	the parameters passed one at a time for each argument like traditional
 	object parameter passing, set the fourth registration parameter to false.
 	</para>
+	<para>
+	The optional fifth parameter has only effect with
+	<parameter>format</parameter> being <literal>true</literal>
+	and contains a list ob methods that should be treated as
+	blocks. That means these methods have a closing tag in the
+	template
+	(<literal>{foobar->meth2}...{/foobar->meth2}</literal>) and
+	the parameters to the methods have the same synopsis as the
+	parameters for block-function-plugins: They get 4 parameters
+	<parameter>$params</parameter>,
+	<parameter>$content</parameter>,
+	<parameter>&$smarty</parameter> and
+	<parameter>&$repeat</parameter> and they also behave like
+	block-function-plugins.
+	</para>
     <example>
      <title>using a registered or assigned object</title>
      <programlisting>



-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.