cvs: presentations /slides/sdphp/misc/sdphp_using_tools/SDPHP_MondoRegex MondoRegex.php mkapidoc.sh package.xml test-MondoRexeg
/slides/sdphp/misc/sdphp_using_tools/uml/dia MondoRegex_uml.dia mondoregex_uml-raw.dia mondoregex_uml-raw.png mondoregex_uml.png
/slides/sdphp/misc/sdphp_using_tools/uml/dia/generated MondoRegex.class.php MondoRegex.java MondoRegex.py
/slides/sdphp/misc/sdphp_using_tools/uml/umbrello MondoRegex_uml.xmi xmi2code.config
/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/generated/mondoregex mondoregex.php /slides/sdphp/misc/sdphp_using_tools/uml/umbrello/templates
php.pear

From: Date: Fri, 06 Jun 2003 05:45:55 +0000
Subject: cvs: presentations /slides/sdphp/misc/sdphp_using_tools/SDPHP_MondoRegex MondoRegex.php mkapidoc.sh package.xml test-MondoRexeg
/slides/sdphp/misc/sdphp_using_tools/uml/dia MondoRegex_uml.dia mondoregex_uml-raw.dia mondoregex_uml-raw.png mondoregex_uml.png
/slides/sdphp/misc/sdphp_using_tools/uml/dia/generated MondoRegex.class.php MondoRegex.java MondoRegex.py
/slides/sdphp/misc/sdphp_using_tools/uml/umbrello MondoRegex_uml.xmi xmi2code.config
/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/generated/mondoregex mondoregex.php /slides/sdphp/misc/sdphp_using_tools/uml/umbrello/templates
php.pear
Groups: php.pres 
Request: Send a blank email to pres+get-738@lists.php.net to get a copy of this message
jmcastagnetto Fri Jun 6 01:45:55 2003 EDT Added files: /presentations/slides/sdphp/misc/sdphp_using_tools/SDPHP_MondoRegex MondoRegex.php mkapidoc.sh package.xml test-MondoRexeg /presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia MondoRegex_uml.dia mondoregex_uml-raw.dia mondoregex_uml-raw.png mondoregex_uml.png /presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/generated MondoRegex.class.php MondoRegex.java MondoRegex.py /presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello MondoRegex_uml.xmi xmi2code.config /presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/generated/mondoregex mondoregex.php /presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/templates php.pear Log: New SDPHP talk on using tools for making coding/documentation/deployment simpler: the pear installer, phpDocumentor, vim + some plugins, Dia + Autodia + dia2code, Umbrello + xmi2code.

Index: presentations/slides/sdphp/misc/sdphp_using_tools/SDPHP_MondoRegex/MondoRegex.php +++ presentations/slides/sdphp/misc/sdphp_using_tools/SDPHP_MondoRegex/MondoRegex.php <?php /** * Class to apply an array of regular expressions to an array of items. * Supports first match only (as in preg_match) and matching all possibilities * (as in preg_match_all), as well as retrieval of results from a named * regular expression pattern. * * Example of use: * * <pre> * require_once 'SDPHP/MondoRegex.php'; * * $reList = array ( * 'funcs' => "/function (\w+)\s?\(/", * 'assign' => "/\s+([^\s]+)\s+=\s+(.+);/", * 'varname' => "/([$]\w+[-]*[>]*\w+)/" * ); * $inputList = file("/path/to/script.php"); * $mondo = new MondoRegex($reList); * echo "Using match\n--------------\n"; * $mondo->match($inputList); * print_r($mondo->getMatches()); * echo "\nUsing match_all\n--------------\n"; * $mondo->matchAll($inputList); * print_r($mondo->getMatches()); * echo "\nGetting only the matches to the 'funcs' regular expression\n"; * echo "----------------------------------------------------------\n"; * print_r($mondo->getMatchesFor('funcs')); * </pre> * * License: PHP License 2.0 or later * * Last Updated: Thursday 2003-06-05 20:01:49 PDT. * * @package MondoRegex * @version 0.1.0 * @copyright Jesus M. Castagnetto, 2003 * @author Jesus M. Castagnetto */ class MondoRegex {/*{{{*/ /** * List of regular expressions * * @var array * @access private */ var $_reList = array(); /** * List of matches * * @var array * @access private */ var $_matchList = array(); function foo() {/*{{{*/ }/*}}}*/ /** * Class constructor * * @param optional array $reList associative array of regular expressions * @return MondoRegex object * @access public */ function MondoRegex($reList = "")/*{{{*/ { if (!empty($reList) && is_array($reList)) { $this->setRegexList($reList); } }/*}}}*/ /** * Sets the regular expression list * * @param optional array $reList associative array of regular expressions * @return void * @access public */ function setRegexList($reList) /*{{{*/ { if (is_array($reList)) { $this->_reList = $reList; } }/*}}}*/ /** * Do a simple matching on the input * * @param array $inputList array of strings * @return boolean true on success, false otherwise * @access public */ function match($inputList)/*{{{*/ { return $this->_reMatch("preg_match", $inputList); }/*}}}*/ /** * Perform all possible matches on the input * * @param array $inputList array of strings * @return boolean true on success, false otherwise * @access public */ function matchAll($inputList)/*{{{*/ { return $this->_reMatch("preg_match_all", $inputList); }/*}}}*/ /** * Retrieve all matches from the last operation * * @return array of matches * @access public */ function getMatches()/*{{{*/ { return $this->_matchList; }/*}}}*/ /** * Retrieve the matches for the named regular expression * * @param string $reName the name of the regular expression * @return array|false an array if the name exists, false otherwise */ function getMatchesForKey($reName)/*{{{*/ { if (in_array($reName,array_keys($this->_matchList))) { return $this->_matchList[$reName]; } else { return false; } }/*}}}*/ /** * Retrieve the named regular expressions that gave a match * * @return array|false an array of keys on success, false otherwise * @access public */ function getMatchKeys()/*{{{*/ { if (empty($this->_matchList)) { return false; } else { return array_keys($this->_matchList); } }/*}}}*/ /** * Utility function to perform the regular expression matching * * @param string $reFunc regular expression function to use * @param array $inputList array of input strings * @return boolean true on success, false otherwise * @access private */ function _reMatch($reFunc, $inputList)/*{{{*/ { $this->_matchList = array(); if (empty($this->_reList) || !array($inputList)) { return false; } foreach ($this->_reList as $reName=>$reStr) { foreach ($inputList as $input) { if ($reFunc($reStr, $input, &$hits)) { if (!empty($hits)) { $this->_matchList[$reName][] = $hits; } } } } return !empty($this->_matchList); }/*}}}*/ }/*}}}*/ ?> Index: presentations/slides/sdphp/misc/sdphp_using_tools/SDPHP_MondoRegex/mkapidoc.sh +++ presentations/slides/sdphp/misc/sdphp_using_tools/SDPHP_MondoRegex/mkapidoc.sh #! /bin/bash -x phpdoc -d /home/jesus/fortalk/SDPHP_MondoRegex \ -t /home/jesus/fortalk/SDPHP_MondoRegex/apidoc \ --pear -ti 'MondoRegex' \ -o 'HTML:frames:default,HTML:frames:phpedit,HTML:frames:earthli,HTML:frames:l0l33t,HTML:frames:phpdoc.de,HTML:frames:phphtmllib,XML:DocBook/peardoc2:default' Index: presentations/slides/sdphp/misc/sdphp_using_tools/SDPHP_MondoRegex/package.xml +++ presentations/slides/sdphp/misc/sdphp_using_tools/SDPHP_MondoRegex/package.xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE package SYSTEM "../package.dtd"> <!-- do not use the "Type" attribute here, that one is only for generated package.xml files --> <package> <name>MondoRegex</name> <summary>Class to apply a list of regular expressions</summary> <description> This class applies an array of named regular expressions to an array of input strings. Has methods to return all matches, or just matches for a named regular expression. </description> <maintainers> <maintainer> <user>jmcastagnetto</user> <name>Jesus M. Castagnetto</name> <email>jmcastagnetto@php.net</email> <role>lead</role> </maintainer> <maintainer> <user>snipe</user> <name>Alison Gianotto</name> <email>snipe@snipe.net</email> <role>developer</role> </maintainer> </maintainers> <release> <license>PHP</license> <version>0.1.0</version> <date>2003-06-05</date> <notes> Initial release </notes> <state>beta</state> <filelist> <dir name="/" baseinstalldir="SDPHP"> <file role="php">MondoRegex.php</file> </dir> </filelist> </release> <changelog> </changelog> </package> Index: presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/MondoRegex_uml.dia +++ presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/MondoRegex_uml.dia ‹í\MsÛ6½ûWpèkBRJ“ºi¤ŒÓ_·3æÌÉ…X´ÍK~{ÁKæ—(R¤S9Ќ-^îûo$Ñ>>Dĸ.0£+sa9¦Ôg¦áÊüò÷Íë+óãúâC€Ñ{õrê *²ßVæVÊø½mßßß[$H2nœXìoˆd+#Û\_ÆS’(+G‘”{‰ƒ¢V¦‡ü¯!g ̪´óaܸCde^nò‡i—n슟¾c¯»b&°2‘iÜ0éð“}bSZ eDÃõåõO—Ŕʁ½¯¶‰v‚ÈñÓ&DŠ…XZWËÇUàÍ@æàs`áÆŒKްl‚xŒ@´À‘<ñ8ÂGD¥Ê¡@ã½o°”¬gþDÄ1ûªZ!ÇÁá¬Xtx¹ÇÜº3-Wá=ÉûØ#Ð6{LådîÓݟºÏ @ôìtÕ¦ÃÓ¶4³û¯ÛA1TkN9A)ðÒý§}[2Ê5.‹þÉ*0ïðeޗÛÏÆkã7‚„0÷-V5X¬Ì?êÚÔ£Qžó4'f»M\ZÎÛW ÇZ¼­‡ÜÜË.Ï«p5DC%HŽðëÒ±Þ¼ûyñjéŒÃ‘ë3N›­uˆr”¼x›Qí ÷ÊZªHNØ·²áëjœ÷š¨¨HŠ[Fö„ðÐ*-†À X–¢í`£æŽ<u1òËr¨Å štÇ„pw³C1%‘TE;Ô#WTUbŒ:2¤ñ@Æ¡`I7×ëu˜§"ÞÉãpö‡„~œêaa`M2%1‰»a´‘ÚÙXiuÍ1"æI…3#„Ÿu ìÇçã9À2/½4쌥áʎÌS]¨^œÅ¤û2\'‘Õµ_‘qS©öž·kíÑåð Ùqì> ¡»ŽÞÕîØÀCœ£t24µâÉ8û$ßóc‚eÚ4‰ZŽÃaZúÿ‘ÇÌáXy*»Âgí{4®õ¼ð\ !éouëž%‡ ;5bK ìŒO/ž#ΘUn=êL™™3º>6éóIzL·À±DÔ·kåö-Oû7žžs)w¾…ÁÕ³JlцÖR¢» jöǗi£T{ÔVOXCªi`׋ÜÖ½óXœ¯˜]0%Ý Ö)\¦;2½™óü¤rç;sýú²,ôé•nºè ÀËkùaW3¿f~ÍüçÆü˜Æ‰Ôä¯Éÿ4ò¿&Dó¿æÍÿšÿ5ÿÿXü‚¼ÍZˆ—Ó&~/Mó¿æÿÃüoÿßjù†ñß!Õ­+ZWô¹½–û‡²ú.r®xÖzîEè9EÿZÑiþ×ü֊Îåp«ßùÁ>¨kùÅh¹›„úZ˝–Ó¯Úê̘Fåùp·„(&HÂ\w4>úÕÿÍQܽ¿Ù:¿±z}Q¹óz}ñ ž!€D Index: presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/mondoregex_uml-raw.dia +++ presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/mondoregex_uml-raw.dia <?xml version="1.0"?> <dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/"> <dia:diagramdata> <dia:attribute name="background"> <dia:color val="#ffffff"/> </dia:attribute> <dia:attribute name="paper"> <dia:composite type="paper"> <dia:attribute name="name"> <dia:string>#A4#</dia:string> </dia:attribute> <dia:attribute name="tmargin"> <dia:real val="2.82"/> </dia:attribute> <dia:attribute name="bmargin"> <dia:real val="2.82"/> </dia:attribute> <dia:attribute name="lmargin"> <dia:real val="2.82"/> </dia:attribute> <dia:attribute name="rmargin"> <dia:real val="2.82"/> </dia:attribute> <dia:attribute name="is_portrait"> <dia:boolean val="true"/> </dia:attribute> <dia:attribute name="scaling"> <dia:real val="1"/> </dia:attribute> <dia:attribute name="fitto"> <dia:boolean val="false"/> </dia:attribute> </dia:composite> </dia:attribute> <dia:attribute name="grid"> <dia:composite type="grid"> <dia:attribute name="width_x"> <dia:real val="1"/> </dia:attribute> <dia:attribute name="width_y"> <dia:real val="1"/> </dia:attribute> <dia:attribute name="visible_x"> <dia:int val="1"/> </dia:attribute> <dia:attribute name="visible_y"> <dia:int val="1"/> </dia:attribute> </dia:composite> </dia:attribute> <dia:attribute name="guides"> <dia:composite type="guides"> <dia:attribute name="hguides"/> <dia:attribute name="vguides"/> </dia:composite> </dia:attribute> </dia:diagramdata> <dia:layer name="Background" visible="true"> <dia:object type="UML - Class" version="0" id="O0"> <dia:attribute name="obj_pos"> <dia:point val="1.500,9.000"/> </dia:attribute> <dia:attribute name="obj_bb"> <dia:rectangle val="1.500,9.000;3.5,11"/> </dia:attribute> <dia:attribute name="elem_corner"> <dia:point val="1.500,9.000"/> </dia:attribute> <dia:attribute name="elem_width"> <dia:real val="2.000"/> </dia:attribute> <dia:attribute name="elem_height"> <dia:real val="2.000"/> </dia:attribute> <dia:attribute name="name"> <dia:string>#../SDPHP_MondoRegex/MondoRegex.php#</dia:string> </dia:attribute> <dia:attribute name="stereotype"> <dia:string/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="suppress_attributes"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="suppress_operations"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="visible_attributes"> <dia:boolean val="true"/> </dia:attribute> <dia:attribute name="visible_operations"> <dia:boolean val="true"/> </dia:attribute> <dia:attribute name="foreground_color"> <dia:color val="#000000"/> </dia:attribute> <dia:attribute name="background_color"> <dia:color val="#ffffff"/> </dia:attribute> <dia:attribute name = "attributes"/> <dia:attribute name="operations"/> <dia:attribute name="template"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="templates"/> </dia:object> <dia:object type="UML - Class" version="0" id="O3"> <dia:attribute name="obj_pos"> <dia:point val="0.500,8.600"/> </dia:attribute> <dia:attribute name="obj_bb"> <dia:rectangle val="0.500,8.600;9.5,18.6"/> </dia:attribute> <dia:attribute name="elem_corner"> <dia:point val="0.500,8.600"/> </dia:attribute> <dia:attribute name="elem_width"> <dia:real val="9.000"/> </dia:attribute> <dia:attribute name="elem_height"> <dia:real val="10.000"/> </dia:attribute> <dia:attribute name="name"> <dia:string>#MondoRegex#</dia:string> </dia:attribute> <dia:attribute name="stereotype"> <dia:string/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="suppress_attributes"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="suppress_operations"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="visible_attributes"> <dia:boolean val="true"/> </dia:attribute> <dia:attribute name="visible_operations"> <dia:boolean val="true"/> </dia:attribute> <dia:attribute name="foreground_color"> <dia:color val="#000000"/> </dia:attribute> <dia:attribute name="background_color"> <dia:color val="#ffffff"/> </dia:attribute> <dia:attribute name="attributes"> <dia:composite type="umlattribute"> <dia:attribute name="name"> <dia:string>#_reList#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>##</dia:string> </dia:attribute> <dia:attribute name="value"> <dia:string>array()</dia:string> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="1"/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> </dia:composite> <dia:composite type="umlattribute"> <dia:attribute name="name"> <dia:string>#_matchList#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>##</dia:string> </dia:attribute> <dia:attribute name="value"> <dia:string>array()</dia:string> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="1"/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> </dia:composite> </dia:attribute> <dia:attribute name="operations"> <dia:composite type="umloperation"> <dia:attribute name="name"> <dia:string>#MondoRegex#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string/> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="0"/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="parameters"> <dia:composite type="umlparameter"> <dia:attribute name="name"> <dia:string>#reList#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>##</dia:string> </dia:attribute> <dia:attribute name="value"> <dia:string/> </dia:attribute> <dia:attribute name="kind"> <dia:enum val="0"/> </dia:attribute> </dia:composite> </dia:attribute> </dia:composite> <dia:composite type="umloperation"> <dia:attribute name="name"> <dia:string>#setRegexList#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string/> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="0"/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="parameters"> <dia:composite type="umlparameter"> <dia:attribute name="name"> <dia:string>#reList#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>##</dia:string> </dia:attribute> <dia:attribute name="value"> <dia:string/> </dia:attribute> <dia:attribute name="kind"> <dia:enum val="0"/> </dia:attribute> </dia:composite> </dia:attribute> </dia:composite> <dia:composite type="umloperation"> <dia:attribute name="name"> <dia:string>#match#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string/> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="0"/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="parameters"> <dia:composite type="umlparameter"> <dia:attribute name="name"> <dia:string>#inputList#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>##</dia:string> </dia:attribute> <dia:attribute name="value"> <dia:string/> </dia:attribute> <dia:attribute name="kind"> <dia:enum val="0"/> </dia:attribute> </dia:composite> </dia:attribute> </dia:composite> <dia:composite type="umloperation"> <dia:attribute name="name"> <dia:string>#matchAll#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string/> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="0"/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="parameters"> <dia:composite type="umlparameter"> <dia:attribute name="name"> <dia:string>#inputList#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>##</dia:string> </dia:attribute> <dia:attribute name="value"> <dia:string/> </dia:attribute> <dia:attribute name="kind"> <dia:enum val="0"/> </dia:attribute> </dia:composite> </dia:attribute> </dia:composite> <dia:composite type="umloperation"> <dia:attribute name="name"> <dia:string>#getMatches#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string/> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="0"/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name = "parameters"/> </dia:composite> <dia:composite type="umloperation"> <dia:attribute name="name"> <dia:string>#getMatchesForKey#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string/> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="0"/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="parameters"> <dia:composite type="umlparameter"> <dia:attribute name="name"> <dia:string>#reName#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>##</dia:string> </dia:attribute> <dia:attribute name="value"> <dia:string/> </dia:attribute> <dia:attribute name="kind"> <dia:enum val="0"/> </dia:attribute> </dia:composite> </dia:attribute> </dia:composite> <dia:composite type="umloperation"> <dia:attribute name="name"> <dia:string>#getMatchKeys#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string/> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="0"/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name = "parameters"/> </dia:composite> <dia:composite type="umloperation"> <dia:attribute name="name"> <dia:string>#_reMatch#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string/> </dia:attribute> <dia:attribute name="visibility"> <dia:enum val="1"/> </dia:attribute> <dia:attribute name="abstract"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="class_scope"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="parameters"> <dia:composite type="umlparameter"> <dia:attribute name="name"> <dia:string>#reFunc#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>##</dia:string> </dia:attribute> <dia:attribute name="value"> <dia:string/> </dia:attribute> <dia:attribute name="kind"> <dia:enum val="0"/> </dia:attribute> </dia:composite> <dia:composite type="umlparameter"> <dia:attribute name="name"> <dia:string>#inputList#</dia:string> </dia:attribute> <dia:attribute name="type"> <dia:string>##</dia:string> </dia:attribute> <dia:attribute name="value"> <dia:string/> </dia:attribute> <dia:attribute name="kind"> <dia:enum val="0"/> </dia:attribute> </dia:composite> </dia:attribute> </dia:composite> </dia:attribute> <dia:attribute name="template"> <dia:boolean val="false"/> </dia:attribute> <dia:attribute name="templates"/> </dia:object> <dia:object type="UML - Dependency" version="0" id="O2"> <dia:attribute name="obj_pos"> <dia:point val="9.5,6"/> </dia:attribute> <dia:attribute name="obj_bb"> <dia:rectangle val="9.5,6;4.5,9.000"/> </dia:attribute> <dia:attribute name="orth_points"> <dia:point val="4.5,9.000"/> <dia:point val="4.5,7.5"/> <dia:point val="9.5,7.5"/> <dia:point val="9.5,6"/> </dia:attribute> <dia:attribute name="orth_orient"> <dia:enum val="1"/> <dia:enum val="0"/> <dia:enum val="1"/> </dia:attribute> <dia:attribute name="draw_arrow"> <dia:boolean val="true"/> </dia:attribute> <dia:attribute name="name"> <dia:string/> </dia:attribute> <dia:attribute name="stereotype"> <dia:string/> </dia:attribute> <dia:connections> <dia:connection handle="1" to="O3" connection="6"/> <dia:connection handle="0" to="O0" connection="1"/> </dia:connections> </dia:object> </dia:layer> </dia:diagram> Index: presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/generated/MondoRegex.class.php +++ presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/generated/MondoRegex.class.php <?php /** * XXX detailed description * * @author XXX * @copyright XXX */ class MondoRegex { // Attributes /** * XXX * @access private */ var $_reList; /** * XXX * @access private */ var $_matchList; // Associations // Operations /** * XXX * * @access public * @param array $reList XXX */ function MondoRegex ( $reList ){ } /** * XXX * * @access public * @returns boolean * @param array $reList XXX */ function setRegexList ( $reList ){ } /** * XXX * * @access public * @returns boolean * @param array $inputList XXX */ function match ( $inputList ){ } /** * XXX * * @access public * @returns boolean * @param array $inputList XXX */ function matchAll ( $inputList ){ } /** * XXX * * @access public * @returns array */ function getMatches ( ){ } /** * XXX * * @access public * @returns array * @param string $reName XXX */ function getMatchesForKey ( $reName ){ } /** * XXX * * @access public * @returns array */ function getMatchKeys ( ){ } /** * XXX * * @access private * @returns boolean * @param string $reFunc XXX * @param array $inputList XXX */ function _reMatch ( $reFunc, $inputList ){ } } ?> Index: presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/generated/MondoRegex.java +++ presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/generated/MondoRegex.java public class MondoRegex { /** Attributes */ private array _reList; private array _matchList; /** * Operation * * @param reList * @return */ public MondoRegex ( array reList ){ } /** * Operation * * @param reList * @return boolean */ public boolean setRegexList ( array reList ){ } /** * Operation * * @param inputList * @return boolean */ public boolean match ( array inputList ){ } /** * Operation * * @param inputList * @return boolean */ public boolean matchAll ( array inputList ){ } /** * Operation * * @return array */ public array getMatches ( ){ } /** * Operation * * @param reName * @return array */ public array getMatchesForKey ( string reName ){ } /** * Operation * * @return array */ public array getMatchKeys ( ){ } /** * Operation * * @param reFunc * @param inputList * @return boolean */ private boolean _reMatch ( string reFunc, array inputList ){ } } Index: presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/generated/MondoRegex.py +++ presentations/slides/sdphp/misc/sdphp_using_tools/uml/dia/generated/MondoRegex.py class MondoRegex: """Class MondoRegex """ # Attributes: ___reList = None # (array) ___matchList = None # (array) # Operations def MondoRegex(self, reList): """function MondoRegex reList: array returns """ return None # should raise NotImplementedError() def setRegexList(self, reList): """function setRegexList reList: array returns boolean """ return None # should raise NotImplementedError() def match(self, inputList): """function match inputList: array returns boolean """ return None # should raise NotImplementedError() def matchAll(self, inputList): """function matchAll inputList: array returns boolean """ return None # should raise NotImplementedError() def getMatches(self): """function getMatches returns array """ return None # should raise NotImplementedError() def getMatchesForKey(self, reName): """function getMatchesForKey reName: string returns array """ return None # should raise NotImplementedError() def getMatchKeys(self): """function getMatchKeys returns array """ return None # should raise NotImplementedError() def ___reMatch(self, reFunc, inputList): """function _reMatch reFunc: string inputList: array returns boolean """ return None # should raise NotImplementedError() Index: presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/MondoRegex_uml.xmi +++ presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/MondoRegex_uml.xmi <?xml version="1.0" encoding="UTF-8"?> <XMI xmlns:UML="org.omg/standards/UML" verified="false" timestamp="" xmi.version="1.2" > <XMI.header> <XMI.documentation> <XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter> <XMI.exporterVersion>1.1</XMI.exporterVersion> </XMI.documentation> <XMI.model xmi.name="MondoRegex_uml" href="/home/jesus/fortalk/uml/umbrello/MondoRegex_uml.xmi" /> <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" /> </XMI.header> <XMI.content> <docsettings viewid="1" documentation="" uniqueid="12" /> <umlobjects> <UML:Class stereotype="" package="MondoRegex" xmi.id="2" abstract="0" documentation="Our superduper regular expression class" name="MondoRegex" static="0" scope="200" > <UML:Operation stereotype="" package="" xmi.id="5" type="MondoRegex" abstract="0" documentation="" name="MondoRegex" static="0" scope="200" > <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="Optional array of regular expressions" name="reList" static="0" scope="200" /> </UML:Operation> <UML:Operation stereotype="" package="" xmi.id="6" type="bool" abstract="0" documentation="" name="setRegexList" static="0" scope="200" > <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="array of regular expressions" name="reList" static="0" scope="200" /> </UML:Operation> <UML:Operation stereotype="" package="" xmi.id="7" type="bool" abstract="0" documentation="" name="match" static="0" scope="200" > <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="array of strings" name="inputList" static="0" scope="200" /> </UML:Operation> <UML:Operation stereotype="" package="" xmi.id="8" type="bool" abstract="0" documentation="" name="matchAll" static="0" scope="200" > <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array" abstract="0" documentation="array of strings" name="inputList" static="0" scope="200" /> </UML:Operation> <UML:Operation stereotype="" package="" xmi.id="9" type="array" abstract="0" documentation="" name="getMatches" static="0" scope="200" /> <UML:Operation stereotype="" package="" xmi.id="10" type="array" abstract="0" documentation="" name="getMatchesForKey" static="0" scope="200" > <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="string" abstract="0" documentation="regular expression key" name="reName" static="0" scope="200" /> </UML:Operation> <UML:Operation stereotype="" package="" xmi.id="11" type="array" abstract="0" documentation="" name="getMatchKeys" static="0" scope="200" /> <UML:Operation stereotype="" package="" xmi.id="12" type="bool" abstract="0" documentation="" name="_reMatch" static="0" scope="201" > <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="string" abstract="0" documentation="name of regex function" name="reFunc" static="0" scope="200" /> <UML:Parameter stereotype="" package="" xmi.id="2" value="" type="array" abstract="0" documentation="array of strings" name="inputList" static="0" scope="200" /> </UML:Operation> <UML:Attribute stereotype="" package="" xmi.id="3" value="" type="array" abstract="0" documentation="" name="_reList" static="0" scope="201" /> <UML:Attribute stereotype="" package="" xmi.id="4" value="" type="array" abstract="0" documentation="Array of matches" name="_matchList" static="0" scope="201" /> </UML:Class> </umlobjects> <diagrams> <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" snapy="10" showatts="1" xmi.id="1" documentation="" type="402" showops="1" showpackage="1" name="class diagram" localid="30000" showstereotype="0" showscope="1" font="Luxi Sans,10,-1,5,48,0,0,0,0,0" linecolor="#ff0000" > <widgets> <UML:ConceptWidget usesdiagramfillcolour="0" width="362" showattsigs="601" usesdiagramusefillcolour="0" x="83" linecolour="#ff0000" y="76" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="209" usefillcolor="1" showattributes="1" xmi.id="2" showoperations="1" showpackage="1" showscope="1" showstereotype="0" font="Luxi Sans,10,-1,5,48,0,0,0,0,0" /> </widgets> <messages/> <associations/> </diagram> </diagrams> <listview> <listitem open="1" type="800" id="-1" label="Views" > <listitem open="1" type="801" id="-1" label="Logical View" > <listitem open="1" type="813" id="2" label="MondoRegex" > <listitem open="0" type="815" id="5" label="MondoRegex" /> <listitem open="0" type="814" id="4" label="_matchList" /> <listitem open="0" type="814" id="3" label="_reList" /> <listitem open="0" type="815" id="12" label="_reMatch" /> <listitem open="0" type="815" id="11" label="getMatchKeys" /> <listitem open="0" type="815" id="9" label="getMatches" /> <listitem open="0" type="815" id="10" label="getMatchesForKey" /> <listitem open="0" type="815" id="7" label="match" /> <listitem open="0" type="815" id="8" label="matchAll" /> <listitem open="0" type="815" id="6" label="setRegexList" /> </listitem> <listitem open="0" type="807" id="1" label="class diagram" /> </listitem> <listitem open="1" type="802" id="-1" label="Use Case View" /> </listitem> </listview> </XMI.content> </XMI> Index: presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/xmi2code.config +++ presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/xmi2code.config <?xml version="1.0" encoding="UTF-8" ?> <xmi2code> <option key="ada.default-code" value="not implemented"/> <option key="ada.extension" value="ads"/> <option key="ada.template" value="ada"/> <option key="config-file" value="xmi2code.config"/> <option key="cpp.cpp-template" value="cpp.cpp"/> <option key="cpp.default-code" value="#error not implemented."/> <option key="cpp.h-template" value="cpp.h"/> <option key="files-case" value="lower"/> <option key="generator" value="php.pear"/> <option key="generator-path" value="generated"/> <option key="handler" value="umbrello"/> <option key="indent" value=" "/> <option key="php.default-code" value="not implemented"/> <option key="php.extension" value="php"/> <option key="php.pear.use-package-in-classnames" value="false"/> <option key="php.template" value="php.pear"/> <option key="pro.file" value="x2c.pro"/> <option key="target" value="*"/> <option key="template-path" value="/home/jesus/fortalk/uml/umbrello/templates/"/> <option key="use-package-as-dir" value="true"/> <option key="xmi-input" value=""/> <option key="project" value="SDPHP"/> <option key="author" value="Jesus M. Castagnetto"/> <option key="email" value="jmcastagnetto@php.net"/> <option key="system-base-include" value="include_once 'PEAR.php';"/> </xmi2code> Index: presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/generated/mondoregex/mondoregex.php +++ presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/generated/mondoregex/mondoregex.php <?php // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The PHP Group | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Created: Thu Jun 5 21:55:30 2003 // | Author: Jesus M. Castagnetto <jmcastagnetto@php.net> // +----------------------------------------------------------------------+ // // $Id: mondoregex.php,v 1.1 2003/06/06 05:45:54 jmcastagnetto Exp $ // include_once 'PEAR.php'; /** * Project: SDPHP * * @package MondoRegex */ // +X2C Class 2 :MondoRegex /** * Our superduper regular expression class * * @access public */ class MondoRegex { /** * @var array $_reList * @access private */ var $__reList; /** * Array of matches * * @var array $_matchList * @access private */ var $__matchList; // ~X2C // +X2C Operation 5 /** * @param array $reList Optional array of regular expressions * * @return MondoRegex * @access public */ function MondoRegex($reList) // ~X2C { not implemented } // -X2C // +X2C Operation 6 /** * @param array $reList array of regular expressions * * @return bool * @access public */ function setRegexList($reList) // ~X2C { not implemented } // -X2C // +X2C Operation 7 /** * @param array $inputList array of strings * * @return bool * @access public */ function match($inputList) // ~X2C { not implemented } // -X2C // +X2C Operation 8 /** * @param array $inputList array of strings * * @return bool * @access public */ function matchAll($inputList) // ~X2C { not implemented } // -X2C // +X2C Operation 9 /** * @return array * @access public */ function getMatches() // ~X2C { not implemented } // -X2C // +X2C Operation 10 /** * @param string $reName regular expression key * * @return array * @access public */ function getMatchesForKey($reName) // ~X2C { not implemented } // -X2C // +X2C Operation 11 /** * @return array * @access public */ function getMatchKeys() // ~X2C { not implemented } // -X2C // +X2C Operation 12 /** * @param string $reFunc name of regex function * @param array $inputList array of strings * * @return bool * @access private */ function __reMatch($reFunc, $inputList) // ~X2C { not implemented } // -X2C } // -X2C Class :MondoRegex ?> Index: presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/templates/php.pear +++ presentations/slides/sdphp/misc/sdphp_using_tools/uml/umbrello/templates/php.pear <?php // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The PHP Group | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.02 of the PHP license, | // | that is bundled with this package in the file LICENSE, and is | // | available at through the world-wide-web at | // | http://www.php.net/license/2_02.txt. | // | If you did not receive a copy of the PHP license and are unable to | // | obtain it through the world-wide-web, please send a note to | // | license@php.net so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // | Created: @@date // | Author: @@author <@@email> // +----------------------------------------------------------------------+ // // $Id: php.pear,v 1.1 2003/06/06 05:45:55 jmcastagnetto Exp $ // @@system-base-include /** * Project: @@project * * @package @@package */
« previous php.pres (#738) next »