Explorar o código

Added documentation change to reflect altered headTitle() method signature and presence of the setDefaultAttachOrder() method

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22090 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic %!s(int64=15) %!d(string=hai) anos
pai
achega
88df2f56af

+ 10 - 2
documentation/manual/en/module_specs/Zend_View-Helpers-HeadTitle.xml

@@ -16,12 +16,20 @@
         enforce generating a <emphasis>&lt;title&gt;</emphasis> element, and adds a
         enforce generating a <emphasis>&lt;title&gt;</emphasis> element, and adds a
         <methodname>headTitle()</methodname> method for quick and easy setting and
         <methodname>headTitle()</methodname> method for quick and easy setting and
         aggregation of title elements. The signature for that method is
         aggregation of title elements. The signature for that method is
-        <methodname>headTitle($title, $setType = 'APPEND')</methodname>; by default, the
-        value is appended to the stack (aggregating title segments), but you may
+        <methodname>headTitle($title, $setType = null)</methodname>; by default, the
+        value is appended to the stack (aggregating title segments) if left at null, but you may
         also specify either 'PREPEND' (place at top of stack) or 'SET'
         also specify either 'PREPEND' (place at top of stack) or 'SET'
         (overwrite stack).
         (overwrite stack).
     </para>
     </para>
 
 
+    <para>
+        Since setting the aggregating (attach) order on each call to <methodname>
+        headTitle</methodname> can be cumbersome, you can set a default attach order
+        by calling <methodname>setDefaultAttachOrder()</methodname> which is applied
+        to all <methodname>headTitle()</methodname> calls unless you explicitly
+        pass a different attach order as the second parameter.
+    </para>
+
     <example id="zend.view.helpers.initial.headtitle.basicusage">
     <example id="zend.view.helpers.initial.headtitle.basicusage">
         <title>HeadTitle Helper Basic Usage</title>
         <title>HeadTitle Helper Basic Usage</title>