cvs: peardoc /en/package/php/php-uml command-line.xml

From: Date: Thu, 08 Jan 2009 23:41:49 +0000
Subject: cvs: peardoc /en/package/php/php-uml command-line.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11425@lists.php.net to get a copy of this message
baptiste750 Thu Jan 8 23:41:49 2009 UTC Modified files: /peardoc/en/package/php/php-uml command-line.xml Log: + How to read an XMI file http://cvs.php.net/viewvc.cgi/peardoc/en/package/php/php-uml/command-line.xml?r1=1.2&r2=1.3&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.2 peardoc/en/package/php/php-uml/command-line.xml:1.3 --- peardoc/en/package/php/php-uml/command-line.xml:1.2 Tue Jan 6 00:42:57 2009 +++ peardoc/en/package/php/php-uml/command-line.xml Thu Jan 8 23:41:49 2009 @@ -32,7 +32,7 @@ <refsection><info><title>Options</title></info> - <para>By default, the root package of a UML model is named "default". To rename it, use the option <literal>-n</literal>: + <para>By default, the root package of a UML model is named <emphasis>default</emphasis>. To rename it, use the option <literal>-n</literal>: <programlisting role="text"> <![CDATA[ $ phpuml /var/www/foo -n MyProject @@ -48,7 +48,9 @@ </programlisting> This will parse <filename>/var/www/foo</filename>, and save the XMI data to <filename>/var/tmp/MyProject.xmi</filename>. Use the dot to save to the current directory: <literal>-o .</literal> - </para> + </para> + + <para>The option <literal>-o</literal> also accepts a file name, instead of a directory path.</para> <para>In addition to <emphasis>xmi</emphasis>, 2 output formats are also available: <emphasis>html</emphasis>, and <emphasis>php</emphasis>. They work by applying an XSL transformation to the XMI data (in UML version 2).</para> @@ -60,7 +62,18 @@ </programlisting> This will scan <filename>/var/www/foo</filename>, and create a full HTML documentation in <filename>/var/tmp/</filename>. </para> - + + <para> + If you need to provide your own XMI file, instead of parsing existing files, simply pass it as argument. + <programlisting role="text"> + <![CDATA[ +$ phpuml myFile.xmi -f php -o /var/tmp/ + ]]> + </programlisting> + This will read the XMI code contained in <filename>myFile.xmi</filename>, and generate the PHP code templates in <filename>/var/tmp/</filename>. + Note that your file must be in version 2 (not 1) of the UML/XMI standard, if you intend to generate data in format <emphasis>html</emphasis> or <emphasis>php</emphasis>. + </para> + <para>To select which version of the UML/XMI standards you want your XMI to be written in, use the option <literal>-x</literal>: <programlisting role="text"> <![CDATA[

« previous php.pear.doc (#11425) next »