*
* @see DB_DataObject
*/
-
class User_greeting_count extends Memcached_DataObject
{
public $__table = 'user_greeting_count'; // table name
* @param mixed $v Value to lookup
*
* @return User_greeting_count object found, or null for no hits
- *
*/
function staticGet($k, $v=null)
{
$gc = User_greeting_count::staticGet('user_id', $user_id);
if (empty($gc)) {
-
$gc = new User_greeting_count();
$gc->user_id = $user_id;
if (!$result) {
// TRANS: Exception thrown when the user greeting count could not be saved in the database.
// TRANS: %d is a user ID (number).
- throw Exception(sprintf(_m("Could not save new greeting count for %d."),
+ throw Exception(sprintf(_m('Could not save new greeting count for %d.'),
$user_id));
}
} else {
if (!$result) {
// TRANS: Exception thrown when the user greeting count could not be saved in the database.
// TRANS: %d is a user ID (number).
- throw Exception(sprintf(_m("Could not increment greeting count for %d."),
+ throw Exception(sprintf(_m('Could not increment greeting count for %d.'),
$user_id));
}
}