[Wiki] changed: Doc/Horde4Conversion

Chuck Hagenbuch <[email protected]>
Newsgroups gmane.comp.horde.cvs
Message-ID <[email protected]>
chuck  Thu, 09 Jul 2009 20:16:57 -0400

Modified page: http://wiki.horde.org/Doc/Horde4Conversion
New Revision:  1.1
Change log:  grammar

@@ -3,9 +3,9 @@
  This page lists topics dealing with conversion from Horde 3  
libraries to Horde 4 format.

  ++ Class naming

-All Horde 4 class should be prefixed with Horde_ to allow autoloading  
of the files.  When converting from Horde 3 format (e.g. Foo class) to  
Horde 4 format (e.g. Horde_Foo), the following commands useful to  
convert all files automatically:
+All Horde 4 class should be prefixed with Horde_ to allow autoloading  
of the files.  When converting from Horde 3 format (e.g. Foo class) to  
Horde 4 format (e.g. Horde_Foo), the following commands are useful to  
convert all files automatically:

  <code>
  find . -type f \( ! -wholename "./.git/*" ! -name "CHANGES" \) |  
xargs grep -l '[ \(\^\!\)]Foo::' | xargs sed -i -r -e 's/([\  
\(\^\!\)])Foo::/\1Horde_Foo::/g'
  find . -type f \( ! -wholename "./.git/*" ! -name "CHANGES" \) |  
xargs grep -l '&Foo::' | xargs sed -i -r -e 's/&Foo::/Horde_Foo::/g'


--
To unsubscribe, mail: [email protected]
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.