cvs: peardoc /en/pyrus/extending packagefile.xml

[email protected] ("Greg Beaver")
Newsgroups php.pear.doc
Message-ID <cvscellog1247163218@cvsserver>
cellog		Thu Jul  9 18:13:38 2009 UTC

  Modified files:              
    /peardoc/en/pyrus/extending	packagefile.xml 
  Log:
  add section demonstrating iterating to retrieve post-install script files
  
http://cvs.php.net/viewvc.cgi/peardoc/en/pyrus/extending/packagefile.xml?r1=1.7&r2=1.8&diff_format=u
Index: peardoc/en/pyrus/extending/packagefile.xml
diff -u peardoc/en/pyrus/extending/packagefile.xml:1.7 peardoc/en/pyrus/extending/packagefile.xml:1.8
--- peardoc/en/pyrus/extending/packagefile.xml:1.7	Thu Jul  9 18:10:23 2009
+++ peardoc/en/pyrus/extending/packagefile.xml	Thu Jul  9 18:13:38 2009
@@ -546,12 +546,18 @@
     // $file->name == $file->packagedname
     $relativepath = $file->name;
 }
+
 // *************** general purpose iteration ***************
 foreach ($package->files as $relativepath => $infoarray) {
     // $relativepath is the same as $file->name in the other examples
     // $infoarray is the same array returned by the packagingcontents
     // iterator
 }
+
+// *************** retrieving post-install scripts ***************
+foreach ($package->scriptfiles as $file) {
+    // $file is the same object returned by the installcontents iterator
+}
 ?>
      ]]>
     </programlisting>
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.