From: Sam Reed Date: Fri, 9 Mar 2012 18:55:12 +0000 (+0000) Subject: Fix up some documentation weirdness from r113487 X-Git-Tag: 1.31.0-rc.0~24318 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=f33011e5a7936ed1ffc022b9f05cae8cec2fcf27;p=lhc%2Fweb%2Fwiklou.git Fix up some documentation weirdness from r113487 --- diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 830ac9afa9..c38d3a688c 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -791,26 +791,24 @@ class DatabasePostgres extends DatabaseBase { return wfTimestamp( TS_POSTGRES, $ts ); } - /* * Posted by cc[plus]php[at]c2se[dot]com on 25-Mar-2009 09:12 * to http://www.php.net/manual/en/ref.pgsql.php - * - * Parsing a postgres array can be a tricky problem, he's my - * take on this, it handles multi-dimensional arrays plus - * escaping using a nasty regexp to determine the limits of each - * data-item. + * + * Parsing a postgres array can be a tricky problem, he's my + * take on this, it handles multi-dimensional arrays plus + * escaping using a nasty regexp to determine the limits of each + * data-item. * * This should really be handled by PHP PostgreSQL module * * @since 1.20 - * @param text string: postgreql array returned in a text form like {a,b} - * @param output string - * @param limit int - * @param offset int + * @param $text string: postgreql array returned in a text form like {a,b} + * @param $output string + * @param $limit int + * @param $offset int * @return string */ - function pg_array_parse( $text, &$output, $limit = false, $offset = 1 ) { if( false === $limit ) { $limit = strlen( $text )-1; @@ -895,14 +893,14 @@ class DatabasePostgres extends DatabaseBase { return explode(",", $row[0]); } - function setSearchPath( $search_path ) { /** * Update search_path, values should already be sanitized * Values may contain magic keywords like "$user" * @since 1.20 * - * @param array list of schemas to be searched by default + * @param $search_path array list of schemas to be searched by default */ + function setSearchPath( $search_path ) { $this->query( "SET search_path = " . implode(", ", $search_path) ); }