merged skunkworks into develop.

This commit is contained in:
Taylor Otwell
2012-01-16 13:59:24 -06:00
parent 610d8827c4
commit b5442c67fc
117 changed files with 7268 additions and 3999 deletions

View File

@@ -12,8 +12,6 @@ class Messages {
/**
* Create a new Messages instance.
*
* The Messages class provides a convenient wrapper around an array of strings.
*
* @return void
*/
public function __construct($messages = array())
@@ -62,14 +60,14 @@ class Messages {
}
/**
* Get the first message for a given key.
* Get the first message from the container for a given key.
*
* <code>
* // Get the first message for the e-mail attribute
* $email = $messages->first('email');
* // Echo the first message for the e-mail attribute
* echo $messages->first('email');
*
* // Format the first message for the e-mail attribute
* $email = $messages->first('email', '<p>:message</p>');
* echo $messages->first('email', '<p>:message</p>');
* </code>
*
* @param string $key
@@ -82,14 +80,14 @@ class Messages {
}
/**
* Get all of the messages for a key.
* Get all of the messages from the container for a given key.
*
* <code>
* // Get all of the messages for the e-mail attribute
* $email = $messages->get('email');
* // Echo all of the messages for the e-mail attribute
* echo $messages->get('email');
*
* // Format all of the messages for the e-mail attribute
* $email = $messages->get('email', '<p>:message</p>');
* echo $messages->get('email', '<p>:message</p>');
* </code>
*
* @param string $key
@@ -107,7 +105,7 @@ class Messages {
}
/**
* Get all of the messages for every key.
* Get all of the messages for every key in the container.
*
* <code>
* // Get all of the messages in the collector