[cvs] [Wiki] created: Doc/Horde4Conversion
Michael Slusarz
slusarz at horde.org
Thu Jul 9 05:47:26 UTC 2009
slusarz Thu, 09 Jul 2009 01:47:26 -0400
Created page: http://wiki.horde.org/Doc/Horde4Conversion
+ Horde 4 Conversion
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:
<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'
</code>
More information about the cvs
mailing list