|
@@ -26,11 +26,6 @@ class Messages {
|
|
|
*
|
|
|
* Duplicate messages will not be added.
|
|
|
*
|
|
|
- * <code>
|
|
|
- * // Add an error message for the "email" key
|
|
|
- * $messages->add('email', 'The e-mail address is invalid.');
|
|
|
- * </code>
|
|
|
- *
|
|
|
* @param string $key
|
|
|
* @param string $message
|
|
|
* @return void
|
|
@@ -46,11 +41,6 @@ class Messages {
|
|
|
/**
|
|
|
* Determine if messages exist for a given key.
|
|
|
*
|
|
|
- * <code>
|
|
|
- * // Determine if there are any messages for the "email" key
|
|
|
- * $has = $messages->has('email');
|
|
|
- * </code>
|
|
|
- *
|
|
|
* @param string $key
|
|
|
* @return bool
|
|
|
*/
|
|
@@ -64,14 +54,6 @@ class Messages {
|
|
|
*
|
|
|
* Optionally, a format may be specified for the returned message.
|
|
|
*
|
|
|
- * <code>
|
|
|
- * // Get the first message for the "email" key
|
|
|
- * $message = $messages->first('email');
|
|
|
- *
|
|
|
- * // Get the first message for the "email" key wrapped in <p> tags
|
|
|
- * $message = $messages->first('email', '<p>:message</p>');
|
|
|
- * </code>
|
|
|
- *
|
|
|
* @param string $key
|
|
|
* @param string $format
|
|
|
* @return string
|
|
@@ -84,14 +66,6 @@ class Messages {
|
|
|
/**
|
|
|
* Get all of the messages for a key.
|
|
|
*
|
|
|
- * <code>
|
|
|
- * // Get all of the messages for the "email" key
|
|
|
- * $message = $messages->get('email');
|
|
|
- *
|
|
|
- * // Get all of the messages for the "email" key wrapped in <p> tags
|
|
|
- * $message = $messages->get('email', '<p>:message</p>');
|
|
|
- * </code>
|
|
|
- *
|
|
|
* @param string $key
|
|
|
* @param string $format
|
|
|
* @return array
|
|
@@ -106,14 +80,6 @@ class Messages {
|
|
|
/**
|
|
|
* Get all of the messages for every key.
|
|
|
*
|
|
|
- * <code>
|
|
|
- * // Get all of the messages for every key
|
|
|
- * $message = $messages->all();
|
|
|
- *
|
|
|
- * // Get all of the messages for every key wrapped in <p> tags
|
|
|
- * $message = $messages->all('<p>:message</p>');
|
|
|
- * </code>
|
|
|
- *
|
|
|
* @param string $format
|
|
|
* @return array
|
|
|
*/
|