From: Alexandre Emsenhuber Date: Mon, 22 Mar 2010 17:56:04 +0000 (+0000) Subject: * Fixed examples (use -> for access to object's methods, not .) X-Git-Tag: 1.31.0-rc.0~37391 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=10a31974296c2002b625cbfeb15ca06f60c90687;p=lhc%2Fweb%2Fwiklou.git * Fixed examples (use -> for access to object's methods, not .) * Formatted comment * svn:eol-style native --- diff --git a/includes/Message.php b/includes/Message.php index 7a3ccda32d..ccc92429d6 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -1,38 +1,38 @@ param( 'apple' )->parse(); + * Parseinline is used because it is more useful when pre-building html. + * In normal use it is better to use OutputPage::(add|wrap)WikiMsg. + * + * Places where html cannot be used. {{-transformation is done. + * Would correspond to wfMsgExt( 'key', array( 'parsemag' ), 'apple', 'pear' ); + * $plain = Message::key( 'key' )->params( 'apple', 'pear' )->text(); + * + * Shortcut for escaping the message too, similar to wfMsgHTML, but + * parameters are not replaced after escaping by default. + * $escaped = Message::key( 'key' )->rawParam( 'apple' ).escaped(); + * + * TODO: + * * document everything + * * test, can we have tests? + * * sort out the details marked with fixme + * * should we have _m() or similar global wrapper? + * + * @since 1.17 + */ class Message { // FIXME: public or protected? @@ -63,7 +63,7 @@ class Message { /** * Adds parameters to the paramater list of this message. - * @params String: parameter + * @param $value String: parameter * @return Message: reference to the object */ public function param( $value ) {