cvs: peardoc /en/package/php/php-uml api.xml command-line.xml conversion-rules.xml intro.xml
| From: | Baptiste Autin | Date: | Tue, 06 Jan 2009 00:42:57 +0000 |
| Subject: | cvs: peardoc /en/package/php/php-uml api.xml command-line.xml conversion-rules.xml intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-11424@lists.php.net to get a copy of this message | ||
baptiste750 Tue Jan 6 00:42:57 2009 UTC
Modified files:
/peardoc/en/package/php/php-uml api.xml conversion-rules.xml
command-line.xml intro.xml
Log:
Various typos
http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-uml/api.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/php/php-uml/api.xml diff -u peardoc/en/package/php/php-uml/api.xml:1.1 peardoc/en/package/php/php-uml/api.xml:1.2 --- peardoc/en/package/php/php-uml/api.xml:1.1 Sun Jan 4 21:55:56 2009 +++ peardoc/en/package/php/php-uml/api.xml Tue Jan 6 00:42:57 2009 @@ -13,15 +13,23 @@ <simpara> The main package, which contains the main class (<literal>PHP_UML</literal>) and some utility classes </simpara> + </listitem> + <listitem> <simpara> The <literal>PHP</literal> package, where the PHP parser resides </simpara> + </listitem> + <listitem> <simpara> The <literal>Metamodel</literal> package, which contains the data structures that <literal>PHP_UML</literal> is using to modelize the code parsed </simpara> + </listitem> + <listitem> <simpara> The <literal>XMI</literal> package, which contains classes that can serialize a metamodel into XMI code </simpara> + </listitem> + <listitem> <simpara> The <literal>Output</literal> package, which contains all the stuff to transform XMI into another format (like HTML) </simpara> @@ -53,7 +61,7 @@ </programlisting> </example> <para> - Note that, since UML is a strong object-oriented standard, <classname>PHP_UML</classname> ignores all "procedural" elements, like global functions, or global constants. + Note that, since UML is a strong object-oriented standard, <classname>PHP_UML</classname> ignores all global functions, or global constants. </para> <example><info><title>Parsing of two directories, ignoring the <filename>CSV</filename> folders, and generation of HTML documentation</title></info> @@ -63,7 +71,8 @@ require_once 'PHP/UML.php'; $uml = new PHP_UML(); -$uml->setInput(array('C:\Inetpub\foo', 'C:\Inetpub\libraries')); +$uml->setInput(array('C:\Inetpub\foo', 'C:\Inetpub\libraries')); +$uml->parse(); $uml->generateXMI(2); $uml->export('html', 'C:\Inetpub\api'); ?> http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-uml/conversion-rules.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/en/package/php/php-uml/conversion-rules.xml diff -u peardoc/en/package/php/php-uml/conversion-rules.xml:1.4 peardoc/en/package/php/php-uml/conversion-rules.xml:1.5 --- peardoc/en/package/php/php-uml/conversion-rules.xml:1.4 Sun Jan 4 21:55:56 2009 +++ peardoc/en/package/php/php-uml/conversion-rules.xml Tue Jan 6 00:42:57 2009 @@ -13,9 +13,13 @@ <simpara> A PHP class (or interface) maps to an UML Class (or Interface). </simpara> + </listitem> + <listitem> <simpara> A PHP function maps to an UML Operation. </simpara> + </listitem> + <listitem> <simpara> A PHP property, or class constant, maps to an UML Attribute. </simpara> @@ -29,6 +33,8 @@ <simpara> by using the PHP <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.php.net/manual/en/language.namespaces.php">namespace</link> instruction </simpara> + </listitem> + <listitem> <simpara> by using the docblock <literal>@package</literal> in the comment of a class (or of a file) </simpara> @@ -46,6 +52,8 @@ <simpara> A PHP file maps to an UML Artifact. </simpara> + </listitem> + <listitem> <simpara> A physical folder maps to an UML Package. </simpara> @@ -62,6 +70,8 @@ <simpara> A class (or an interface) maps to an UML Component. </simpara> + </listitem> + <listitem> <simpara> A logical package maps to an UML Subpackage. </simpara> @@ -75,6 +85,8 @@ <simpara> A class (or an interface) maps to an UML Component. </simpara> + </listitem> + <listitem> <simpara> A logical package maps to a nesting UML Component. </simpara> http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-uml/command-line.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/php/php-uml/command-line.xml diff -u peardoc/en/package/php/php-uml/command-line.xml:1.1 peardoc/en/package/php/php-uml/command-line.xml:1.2 --- peardoc/en/package/php/php-uml/command-line.xml:1.1 Sun Jan 4 21:55:56 2009 +++ peardoc/en/package/php/php-uml/command-line.xml Tue Jan 6 00:42:57 2009 @@ -67,7 +67,7 @@ $ phpuml /var/www/foo -x 1 -o /var/tmp/ ]]> </programlisting> -Note that Argouml accepts only XMI only in version 1, while the Eclipse plugins (Ecore standard) only in version 2. +Note that Argouml accepts XMI code only in version 1, while the Eclipse plugins (Ecore standard) only in version 2. </para> <para>By default, <literal>phpuml</literal> will parse only files with the extension <filename>.php</filename>. To modify this file pattern, use the <literal>- m</literal> selector: http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-uml/intro.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/en/package/php/php-uml/intro.xml diff -u peardoc/en/package/php/php-uml/intro.xml:1.4 peardoc/en/package/php/php-uml/intro.xml:1.5 --- peardoc/en/package/php/php-uml/intro.xml:1.4 Sun Jan 4 21:55:56 2009 +++ peardoc/en/package/php/php-uml/intro.xml Tue Jan 6 00:42:57 2009 @@ -16,11 +16,15 @@ <itemizedlist> <listitem> <simpara> - A XMI file, reflecting the object structure of the code parsed + An XMI file, reflecting the object structure of the code parsed; you can then import that file into a CASE tool (such as Rational Rose) </simpara> + </listitem> + <listitem> <simpara> A full HTML API documentation, very similar to <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://java.sun.com/j2se/javadoc/reference/docs/">Javadoc</link> </simpara> + </listitem> + <listitem> <simpara> PHP code skeletons (useful if you have an existing XMI file, and want to generate the files, folders and class declarations all at once) </simpara> @@ -28,7 +32,7 @@ </itemizedlist> </para> <para> - <emphasis>XMI</emphasis> is an <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.omg.org/">OMG</link> standard for exchanging metadata information via XML, and is commonly used as an interchange format for UML models. Many UML softwares support importing and exporting of XMI files. + <classname>XMI</classname> is an <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.omg.org/">OMG</link> standard for exchanging metadata information via XML, and is commonly used as an interchange format for UML models. Many UML softwares support importing and exporting of XMI files. </para> </refsection> @@ -40,6 +44,8 @@ <simpara> <literal>@param</literal> and <literal>@var</literal> learn PHP_UML about the expected types of a parameter or a property. </simpara> + </listitem> + <listitem> <simpara> <literal>@package</literal> learns PHP_UML about the namespace of an element (even if, from PHP 5.3, it is recommended to use the PHP namespacing instructions instead) </simpara> @@ -71,9 +77,6 @@ ]]> </programlisting> </example> - <para> - Note that, since UML is a strong object-oriented standard, <classname>PHP_UML</classname> ignores all "procedural" elements, like global functions, or global constants. - </para> </refsection> <refsection><info><title>Compatibility of XMI</title></info> @@ -85,15 +88,18 @@ <refsection><info><title>Extension</title></info> <para> - <classname>PHP_UML</classname> is designed with evolution in mind. By choosing <emphasis>XMI</emphasis> as the pivot format for representing object oriented program structures, PHP_UML can not only interface with many design tools. + <classname>PHP_UML</classname> is designed with evolution in mind. By choosing XMI as the pivot format for representing object oriented program structures, PHP_UML can not only interface with many design tools. It can also be transformed, through XSLT, into many other formats, like the HTML API documentation generator, included in <classname>PHP_UML</classname>. </para> <para> - To start your own transformation, create a folder under <filename>/Output</filename>, and create a <filename>main.xsl</filename> file inside (you can copy the one present in <filename>/Output/html</filename>). Run the method <literal>PHP_UML->export()</literal> and pass the name of your format as the first parameter. + To start your own transformation, create a folder under <filename>/Output</filename>, and create a <filename>main.xsl</filename> file inside (you can copy the one in <filename>/Output/html</filename>). Run the method <literal>PHP_UML->export()</literal>, passing the name of your format as the first parameter. + </para> + <para> + Instead of transforming XMI code, another way to create new output formats is to write a PHP class that will directly exploit the metamodel that the parser has built, exactly like the package <literal>XMI</literal> does. </para> - <para>Instead of transforming XMI, another way to create new output formats is to create a PHP class that will directly exploite the metamodel that the parser has built, exactly like the package <literal>XMI</literal> does. - If you are interested by the PHP_UML project, and want to participate, do not hesitate to contact me. + <para> + If you are interested by the PHP_UML project, and want to participate, do not hesitate to contact me. </para> - </refsection> + </refsection> </refentry>
http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-uml/api.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/php/php-uml/api.xml diff -u peardoc/en/package/php/php-uml/api.xml:1.1 peardoc/en/package/php/php-uml/api.xml:1.2 --- peardoc/en/package/php/php-uml/api.xml:1.1 Sun Jan 4 21:55:56 2009 +++ peardoc/en/package/php/php-uml/api.xml Tue Jan 6 00:42:57 2009 @@ -13,15 +13,23 @@ <simpara> The main package, which contains the main class (<literal>PHP_UML</literal>) and some utility classes </simpara> + </listitem> + <listitem> <simpara> The <literal>PHP</literal> package, where the PHP parser resides </simpara> + </listitem> + <listitem> <simpara> The <literal>Metamodel</literal> package, which contains the data structures that <literal>PHP_UML</literal> is using to modelize the code parsed </simpara> + </listitem> + <listitem> <simpara> The <literal>XMI</literal> package, which contains classes that can serialize a metamodel into XMI code </simpara> + </listitem> + <listitem> <simpara> The <literal>Output</literal> package, which contains all the stuff to transform XMI into another format (like HTML) </simpara> @@ -53,7 +61,7 @@ </programlisting> </example> <para> - Note that, since UML is a strong object-oriented standard, <classname>PHP_UML</classname> ignores all "procedural" elements, like global functions, or global constants. + Note that, since UML is a strong object-oriented standard, <classname>PHP_UML</classname> ignores all global functions, or global constants. </para> <example><info><title>Parsing of two directories, ignoring the <filename>CSV</filename> folders, and generation of HTML documentation</title></info> @@ -63,7 +71,8 @@ require_once 'PHP/UML.php'; $uml = new PHP_UML(); -$uml->setInput(array('C:\Inetpub\foo', 'C:\Inetpub\libraries')); +$uml->setInput(array('C:\Inetpub\foo', 'C:\Inetpub\libraries')); +$uml->parse(); $uml->generateXMI(2); $uml->export('html', 'C:\Inetpub\api'); ?> http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-uml/conversion-rules.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/en/package/php/php-uml/conversion-rules.xml diff -u peardoc/en/package/php/php-uml/conversion-rules.xml:1.4 peardoc/en/package/php/php-uml/conversion-rules.xml:1.5 --- peardoc/en/package/php/php-uml/conversion-rules.xml:1.4 Sun Jan 4 21:55:56 2009 +++ peardoc/en/package/php/php-uml/conversion-rules.xml Tue Jan 6 00:42:57 2009 @@ -13,9 +13,13 @@ <simpara> A PHP class (or interface) maps to an UML Class (or Interface). </simpara> + </listitem> + <listitem> <simpara> A PHP function maps to an UML Operation. </simpara> + </listitem> + <listitem> <simpara> A PHP property, or class constant, maps to an UML Attribute. </simpara> @@ -29,6 +33,8 @@ <simpara> by using the PHP <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.php.net/manual/en/language.namespaces.php">namespace</link> instruction </simpara> + </listitem> + <listitem> <simpara> by using the docblock <literal>@package</literal> in the comment of a class (or of a file) </simpara> @@ -46,6 +52,8 @@ <simpara> A PHP file maps to an UML Artifact. </simpara> + </listitem> + <listitem> <simpara> A physical folder maps to an UML Package. </simpara> @@ -62,6 +70,8 @@ <simpara> A class (or an interface) maps to an UML Component. </simpara> + </listitem> + <listitem> <simpara> A logical package maps to an UML Subpackage. </simpara> @@ -75,6 +85,8 @@ <simpara> A class (or an interface) maps to an UML Component. </simpara> + </listitem> + <listitem> <simpara> A logical package maps to a nesting UML Component. </simpara> http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-uml/command-line.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/php/php-uml/command-line.xml diff -u peardoc/en/package/php/php-uml/command-line.xml:1.1 peardoc/en/package/php/php-uml/command-line.xml:1.2 --- peardoc/en/package/php/php-uml/command-line.xml:1.1 Sun Jan 4 21:55:56 2009 +++ peardoc/en/package/php/php-uml/command-line.xml Tue Jan 6 00:42:57 2009 @@ -67,7 +67,7 @@ $ phpuml /var/www/foo -x 1 -o /var/tmp/ ]]> </programlisting> -Note that Argouml accepts only XMI only in version 1, while the Eclipse plugins (Ecore standard) only in version 2. +Note that Argouml accepts XMI code only in version 1, while the Eclipse plugins (Ecore standard) only in version 2. </para> <para>By default, <literal>phpuml</literal> will parse only files with the extension <filename>.php</filename>. To modify this file pattern, use the <literal>- m</literal> selector: http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-uml/intro.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/en/package/php/php-uml/intro.xml diff -u peardoc/en/package/php/php-uml/intro.xml:1.4 peardoc/en/package/php/php-uml/intro.xml:1.5 --- peardoc/en/package/php/php-uml/intro.xml:1.4 Sun Jan 4 21:55:56 2009 +++ peardoc/en/package/php/php-uml/intro.xml Tue Jan 6 00:42:57 2009 @@ -16,11 +16,15 @@ <itemizedlist> <listitem> <simpara> - A XMI file, reflecting the object structure of the code parsed + An XMI file, reflecting the object structure of the code parsed; you can then import that file into a CASE tool (such as Rational Rose) </simpara> + </listitem> + <listitem> <simpara> A full HTML API documentation, very similar to <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://java.sun.com/j2se/javadoc/reference/docs/">Javadoc</link> </simpara> + </listitem> + <listitem> <simpara> PHP code skeletons (useful if you have an existing XMI file, and want to generate the files, folders and class declarations all at once) </simpara> @@ -28,7 +32,7 @@ </itemizedlist> </para> <para> - <emphasis>XMI</emphasis> is an <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.omg.org/">OMG</link> standard for exchanging metadata information via XML, and is commonly used as an interchange format for UML models. Many UML softwares support importing and exporting of XMI files. + <classname>XMI</classname> is an <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.omg.org/">OMG</link> standard for exchanging metadata information via XML, and is commonly used as an interchange format for UML models. Many UML softwares support importing and exporting of XMI files. </para> </refsection> @@ -40,6 +44,8 @@ <simpara> <literal>@param</literal> and <literal>@var</literal> learn PHP_UML about the expected types of a parameter or a property. </simpara> + </listitem> + <listitem> <simpara> <literal>@package</literal> learns PHP_UML about the namespace of an element (even if, from PHP 5.3, it is recommended to use the PHP namespacing instructions instead) </simpara> @@ -71,9 +77,6 @@ ]]> </programlisting> </example> - <para> - Note that, since UML is a strong object-oriented standard, <classname>PHP_UML</classname> ignores all "procedural" elements, like global functions, or global constants. - </para> </refsection> <refsection><info><title>Compatibility of XMI</title></info> @@ -85,15 +88,18 @@ <refsection><info><title>Extension</title></info> <para> - <classname>PHP_UML</classname> is designed with evolution in mind. By choosing <emphasis>XMI</emphasis> as the pivot format for representing object oriented program structures, PHP_UML can not only interface with many design tools. + <classname>PHP_UML</classname> is designed with evolution in mind. By choosing XMI as the pivot format for representing object oriented program structures, PHP_UML can not only interface with many design tools. It can also be transformed, through XSLT, into many other formats, like the HTML API documentation generator, included in <classname>PHP_UML</classname>. </para> <para> - To start your own transformation, create a folder under <filename>/Output</filename>, and create a <filename>main.xsl</filename> file inside (you can copy the one present in <filename>/Output/html</filename>). Run the method <literal>PHP_UML->export()</literal> and pass the name of your format as the first parameter. + To start your own transformation, create a folder under <filename>/Output</filename>, and create a <filename>main.xsl</filename> file inside (you can copy the one in <filename>/Output/html</filename>). Run the method <literal>PHP_UML->export()</literal>, passing the name of your format as the first parameter. + </para> + <para> + Instead of transforming XMI code, another way to create new output formats is to write a PHP class that will directly exploit the metamodel that the parser has built, exactly like the package <literal>XMI</literal> does. </para> - <para>Instead of transforming XMI, another way to create new output formats is to create a PHP class that will directly exploite the metamodel that the parser has built, exactly like the package <literal>XMI</literal> does. - If you are interested by the PHP_UML project, and want to participate, do not hesitate to contact me. + <para> + If you are interested by the PHP_UML project, and want to participate, do not hesitate to contact me. </para> - </refsection> + </refsection> </refentry>