* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://status.net/
*/
-class Fave_tally extends Memcached_DataObject
+class Fave_tally extends Managed_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $count; // int(4) not_null
public $modified; // datetime not_null default_0000-00-00%2000%3A00%3A00
- /* Static get */
- function staticGet($k, $v = NULL) { return Memcached_DataObject::staticGet('Fave_tally', $k, $v); }
-
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
$msg = sprintf(
// TRANS: Server exception.
// TRANS: %d is the notice ID (number).
- _m("Couldn't update favorite tally for notice ID %d."),
+ _m("Could not update favorite tally for notice ID %d."),
$noticeID
);
throw new ServerException($msg);
$msg = sprintf(
// TRANS: Server exception.
// TRANS: %d is the notice ID (number).
- _m("Couldn't update favorite tally for notice ID %d."),
+ _m("Could not update favorite tally for notice ID %d."),
$noticeID
);
throw new ServerException($msg);
*/
static function ensureTally($noticeID)
{
- $tally = Fave_tally::staticGet('notice_id', $noticeID);
+ $tally = Fave_tally::getKV('notice_id', $noticeID);
if (!$tally) {
$tally = new Fave_tally();
$msg = sprintf(
// TRANS: Server exception.
// TRANS: %d is the notice ID (number).
- _m("Couldn't create favorite tally for notice ID %d."),
+ _m("Could not create favorite tally for notice ID %d."),
$noticeID
);
throw new ServerException($msg);