From 94524f3aae1c62559051478d847a51ca10e9029b Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Tue, 6 Nov 2012 05:35:52 +0000 Subject: [PATCH] Fix the return type for Gender::country(), add an example, tinker with some English, and remove the unneeded svn:mime-type property. Fixes doc bug #63373 (Mistake in documentation). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328254 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/gender/gender/country.xml | 55 ++++++++++++++++++++++------- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/reference/gender/gender/country.xml b/reference/gender/gender/country.xml index bc0fc7d1c3..887cc413a7 100644 --- a/reference/gender/gender/country.xml +++ b/reference/gender/gender/country.xml @@ -4,38 +4,67 @@ Gender\Gender::country - Get textual country representation. + Get textual country representation &reftitle.description; - public stringGender\Gender::country + public arrayGender\Gender::country integercountry - Get textual country representation from a Gender class constant. + Returns the textual representation of a country from a Gender class + constant. &reftitle.parameters; - - country - - - Country id identified by Gender class constant. - - - + + country + + + A country ID specified by a Gender\Gender class + constant. + + + - &reftitle.returnvalues; + &reftitle.returnvalues; + + Returns an array with the short and full names of the country on success + &return.falseforfailure;. + + + + + &reftitle.examples; - Returns country name as string or false on failure. + + Using <methodname>Gender\Gender::country</methodname> + +country(Gender\Gender::BRITAIN)); +]]> + + &example.outputs; + + + string(2) "UK" + 'country' => + string(13) "Great Britain" +} +]]> + +