cvs: phpdoc /en/reference/swf book.xml constants.xml examples.xml reference.xml setup.xml

From: Date: Wed, 19 Dec 2007 22:37:16 +0000
Subject: cvs: phpdoc /en/reference/swf book.xml constants.xml examples.xml reference.xml setup.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-674@lists.php.net to get a copy of this message
philip Wed Dec 19 22:37:16 2007 UTC Modified files: /phpdoc/en/reference/swf book.xml setup.xml examples.xml constants.xml reference.xml Log: MFB: Upgrade to the new-reference-structure - Split reference.xml into book.xml and setup.xml - Moved from reference.xml to book.xml: - The intro text (partintro), and link to constant and the new example page - Moved from reference.xml to setup.xml: - The rest: requirements, installation, configuration, and resources - Changed the constants section to be an <appendix> - Changed the intro ID from <extname>.intro to intro.<extname>

http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/swf/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/swf/book.xml diff -u /dev/null phpdoc/en/reference/swf/book.xml:1.2 --- /dev/null Wed Dec 19 22:37:15 2007 +++ phpdoc/en/reference/swf/book.xml Wed Dec 19 22:37:15 2007 @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- Purpose: utilspec.nontext --> +<!-- Membership: pecl, external --> + +<book xml:id="book.swf" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Shockwave Flash</title> + + <!-- {{{ preface --> + <preface xml:id="intro.swf"> + &reftitle.intro; + <para> + PHP offers the ability to create Shockwave Flash files via Paul + Haeberli's libswf module. + </para> + <note> + <para> + SWF support was added in PHP 4 RC2. + </para> + <para> + The libswf does not have support for Windows. The development of + that library has been stopped, and the source is not available + to port it to another systems. + </para> + <para> + For up to date SWF support take a look at the + <link linkend="ref.ming">MING</link> functions. + </para> + </note> + <note> + <para> + &pecl.moved-ver;5.0.0. + </para> + </note> + </preface> + <!-- }}} --> + + &reference.swf.setup; + &reference.swf.constants; + &reference.swf.examples; + &reference.swf.reference; + +</book> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/swf/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/swf/setup.xml diff -u /dev/null phpdoc/en/reference/swf/setup.xml:1.2 --- /dev/null Wed Dec 19 22:37:15 2007 +++ phpdoc/en/reference/swf/setup.xml Wed Dec 19 22:37:15 2007 @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="swf.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="swf.requirements"> + &reftitle.required; + <para> + You need the libswf library to compile PHP with support for this + extension. You can download libswf at <link + xlink:href="&url.swf;">&url.swf;</link>. + </para> + </section> + <!-- }}} --> + + <!-- {{{ Installation --> + &reference.swf.configure; + <!-- }}} --> + + <!-- {{{ Configuration --> + <section xml:id="swf.configuration"> + &reftitle.runtime; + &no.config; + </section> + <!-- }}} --> + + <!-- {{{ Resources --> + <section xml:id="swf.resources"> + &reftitle.resources; + &no.resource; + </section> + <!-- }}} --> + +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/swf/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/swf/examples.xml diff -u /dev/null phpdoc/en/reference/swf/examples.xml:1.2 --- /dev/null Wed Dec 19 22:37:16 2007 +++ phpdoc/en/reference/swf/examples.xml Wed Dec 19 22:37:15 2007 @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="swf.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="swf.examples-basic"> + <title>Basic Usage</title> + <para> + Once you've successfully installed PHP with Shockwave Flash + support you can then go about creating Shockwave files from PHP. + You would be surprised at what you can do, take the following + code: + <example> + <title>SWF example</title> + <programlisting role="php"> +<![CDATA[ +<?php +swf_openfile("test.swf", 256, 256, 30, 1, 1, 1); +swf_ortho2(-100, 100, -100, 100); +swf_defineline(1, -70, 0, 70, 0, .2); +swf_definerect(4, 60, -10, 70, 0, 0); +swf_definerect(5, -60, 0, -70, 10, 0); +swf_addcolor(0, 0, 0, 0); + +swf_definefont(10, "Mod"); +swf_fontsize(5); +swf_fontslant(10); +swf_definetext(11, "This be Flash wit PHP!", 1); + +swf_pushmatrix(); +swf_translate(-50, 80, 0); +swf_placeobject(11, 60); +swf_popmatrix(); + +for ($i = 0; $i < 30; $i++) { + $p = $i/(30-1); + swf_pushmatrix(); + swf_scale(1-($p*.9), 1, 1); + swf_rotate(60*$p, 'z'); + swf_translate(20+20*$p, $p/1.5, 0); + swf_rotate(270*$p, 'z'); + swf_addcolor($p, 0, $p/1.2, -$p); + swf_placeobject(1, 50); + swf_placeobject(4, 50); + swf_placeobject(5, 50); + swf_popmatrix(); + swf_showframe(); +} + +for ($i = 0; $i < 30; $i++) { + swf_removeobject(50); + if (($i%4) == 0) { + swf_showframe(); + } +} + +swf_startdoaction(); +swf_actionstop(); +swf_enddoaction(); + +swf_closefile(); +?> +]]> + </programlisting> + </example> + </para> + </section> +</chapter> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"../../../manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> + http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/swf/constants.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/reference/swf/constants.xml diff -u phpdoc/en/reference/swf/constants.xml:1.3 phpdoc/en/reference/swf/constants.xml:1.4 --- phpdoc/en/reference/swf/constants.xml:1.3 Wed Jun 20 22:25:31 2007 +++ phpdoc/en/reference/swf/constants.xml Wed Dec 19 22:37:15 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<section xml:id="swf.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.4 $ --> +<appendix xml:id="swf.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <variablelist> @@ -225,7 +225,7 @@ </listitem> </varlistentry> </variablelist> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/swf/reference.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/swf/reference.xml diff -u phpdoc/en/reference/swf/reference.xml:1.11 phpdoc/en/reference/swf/reference.xml:1.12 --- phpdoc/en/reference/swf/reference.xml:1.11 Mon Dec 10 17:06:10 2007 +++ phpdoc/en/reference/swf/reference.xml Wed Dec 19 22:37:15 2007 @@ -1,132 +1,14 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- Purpose: utilspec.nontext --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.12 $ --> - <reference xml:id="ref.swf" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Shockwave Flash Functions</title> - <titleabbrev>SWF</titleabbrev> +<reference xml:id="ref.swf" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Shockwave Flash &Functions;</title> + <titleabbrev>SWF</titleabbrev> - <partintro> - - <section xml:id="swf.intro"> - &reftitle.intro; - <para> - PHP offers the ability to create Shockwave Flash files via Paul - Haeberli's libswf module. - </para> - <note> - <para> - SWF support was added in PHP 4 RC2. - </para> - <para> - The libswf does not have support for Windows. The development of - that library has been stopped, and the source is not available - to port it to another systems. - </para> - <para> - For up to date SWF support take a look at the - <link linkend="ref.ming">MING</link> functions. - </para> - </note> - <note> - <para> - &pecl.moved-ver;5.0.0. - </para> - </note> - </section> - - <section xml:id="swf.requirements"> - &reftitle.required; - <para> - You need the libswf library to compile PHP with support for this - extension. You can download libswf at <link - xlink:href="&url.swf;">&url.swf;</link>. - </para> - </section> - - &reference.swf.configure; - - <section xml:id="swf.configuration"> - &reftitle.runtime; - &no.config; - </section> + &reference.swf.entities.functions; - <section xml:id="swf.resources"> - &reftitle.resources; - &no.resource; - </section> +</reference> - &reference.swf.constants; - - <section xml:id="swf.examples"> - &reftitle.examples; - <para> - Once you've successfully installed PHP with Shockwave Flash - support you can then go about creating Shockwave files from PHP. - You would be surprised at what you can do, take the following - code: - <example> - <title>SWF example</title> - <programlisting role="php"> -<![CDATA[ -<?php -swf_openfile("test.swf", 256, 256, 30, 1, 1, 1); -swf_ortho2(-100, 100, -100, 100); -swf_defineline(1, -70, 0, 70, 0, .2); -swf_definerect(4, 60, -10, 70, 0, 0); -swf_definerect(5, -60, 0, -70, 10, 0); -swf_addcolor(0, 0, 0, 0); - -swf_definefont(10, "Mod"); -swf_fontsize(5); -swf_fontslant(10); -swf_definetext(11, "This be Flash wit PHP!", 1); - -swf_pushmatrix(); -swf_translate(-50, 80, 0); -swf_placeobject(11, 60); -swf_popmatrix(); - -for ($i = 0; $i < 30; $i++) { - $p = $i/(30-1); - swf_pushmatrix(); - swf_scale(1-($p*.9), 1, 1); - swf_rotate(60*$p, 'z'); - swf_translate(20+20*$p, $p/1.5, 0); - swf_rotate(270*$p, 'z'); - swf_addcolor($p, 0, $p/1.2, -$p); - swf_placeobject(1, 50); - swf_placeobject(4, 50); - swf_placeobject(5, 50); - swf_popmatrix(); - swf_showframe(); -} - -for ($i = 0; $i < 30; $i++) { - swf_removeobject(50); - if (($i%4) == 0) { - swf_showframe(); - } -} - -swf_startdoaction(); -swf_actionstop(); -swf_enddoaction(); - -swf_closefile(); -?> -]]> - </programlisting> - </example> - </para> - </section> - - </partintro> - -&reference.swf.entities.functions; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml
« previous php.doc.cvs (#674) next »