summaryrefslogtreecommitdiff
path: root/lib/profileminilist.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-02 08:22:09 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-02 08:22:09 -0400
commitd04ab14a5a15f9119bedca1332eb516ecf5ca483 (patch)
treead7fdf3b4a585c5d97bcac44b01ba2fbb8887b97 /lib/profileminilist.php
parentaea546c12234e9b24abba8da5d172a99e8b93ac2 (diff)
parent734f631e1ea9022c6de492e0d2979c9ca00585a4 (diff)
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.8.x
Diffstat (limited to 'lib/profileminilist.php')
-rw-r--r--lib/profileminilist.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/profileminilist.php b/lib/profileminilist.php
index 09bef6f7c..357b4a2db 100644
--- a/lib/profileminilist.php
+++ b/lib/profileminilist.php
@@ -47,6 +47,7 @@ define('PROFILES_PER_MINILIST', 27);
class ProfileMiniList extends ProfileList
{
+
function startList()
{
$this->out->elementStart('ul', 'entities users xoxo');
@@ -56,6 +57,23 @@ class ProfileMiniList extends ProfileList
{
return new ProfileMiniListItem($profile, $this->action);
}
+
+ function showProfiles()
+ {
+ $cnt = 0;
+
+ while ($this->profile->fetch()) {
+ $cnt++;
+ if ($cnt > PROFILES_PER_MINILIST) {
+ break;
+ }
+ $pli = $this->newListItem($this->profile);
+ $pli->show();
+ }
+
+ return $cnt;
+ }
+
}
class ProfileMiniListItem extends ProfileListItem