svn: /web/doc-editor/trunk/php/ class.php

From: Date: Wed, 11 Nov 2009 21:49:44 +0000
Subject: svn: /web/doc-editor/trunk/php/ class.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1149@lists.php.net to get a copy of this message
yannick Wed, 11 Nov 2009 21:49:44 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290552 Log: Remove revParseAttrString's method from class.php. This method is present in File.php as parseAttribute's method Changed paths: U web/doc-editor/trunk/php/class.php Modified: web/doc-editor/trunk/php/class.php =================================================================== --- web/doc-editor/trunk/php/class.php 2009-11-11 21:45:54 UTC (rev 290551) +++ web/doc-editor/trunk/php/class.php 2009-11-11 21:49:44 UTC (rev 290552) @@ -65,34 +65,6 @@ } /** - * Parse a string to find all attributs. - * - * @param $tags_attrs The string to parse. - * @return An associated array who key are the name of the attribut, and value, the value of the attribut. - */ - function revParseAttrString($tags_attrs) { - $tag_attrs_processed = array(); - - // Go through the tag attributes - foreach ($tags_attrs as $attrib_list) { - - // Get attr name and values - $attribs = array(); - preg_match_all('!(.+)=\\s*(["\'])\\s*(.+)\\2!U', $attrib_list, $attribs); - - // Assign all attributes to one associative array - $attrib_array = array(); - foreach ($attribs[1] as $num => $attrname) { - $attrib_array[trim($attrname)] = trim($attribs[3][$num]); - } - // Collect in order of tags received - $tag_attrs_processed[] = $attrib_array; - } - // Retrun with collected attributes - return $tag_attrs_processed; - } - - /** * Test if the file is a modified file. * * @param $lang The lang of the tested file.

« previous php.doc.web (#1149) next »