summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-10 12:47:22 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-10 12:47:22 -0500
commita143b6466641901db0536794e51cbfba756c4afd (patch)
tree7c0b8e98b0c5576e645603af257af6153322eae7 /classes/Profile.php
parent1c0a19b4570c99064bc2f43f824c62919711d29d (diff)
edit throttling
darcs-hash:20081210174722-84dde-4c79d7f73230d008195bd19738bc9a6017b940e9.gz
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index 794dc1de9..b57d7e38d 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -24,7 +24,7 @@ if (!defined('LACONICA')) { exit(1); }
*/
require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
-class Profile extends Memcached_DataObject
+class Profile extends Memcached_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
@@ -33,7 +33,7 @@ class Profile extends Memcached_DataObject
public $id; // int(4) primary_key not_null
public $nickname; // varchar(64) multiple_key not_null
public $fullname; // varchar(255) multiple_key
- public $profileurl; // varchar(255)
+ public $profileurl; // varchar(255)
public $homepage; // varchar(255) multiple_key
public $bio; // varchar(140) multiple_key
public $location; // varchar(255) multiple_key
@@ -145,4 +145,15 @@ class Profile extends Memcached_DataObject
}
return NULL;
}
+
+ function getNotices($offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $before_id=0) {
+ $qry =
+ 'SELECT * ' .
+ 'FROM notice ' .
+ 'WHERE profile_id = %d ';
+
+ return Notice::getStream(sprintf($qry, $this->id),
+ 'profile:notices:'.$this->id,
+ $offset, $limit, $since_id, $before_id);
+ }
}