ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9530


Ignore:
Timestamp:
Dec 9, 2008, 11:29:35 PM (11 years ago)
Author:
ogawa
Message:

#3209:added my diary list @homepage

Location:
OpenPNE3/plugins/opDiaryPlugin/trunk
Files:
7 added
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opDiaryPlugin/trunk/lib/model/DiaryPeer.php

    r9527 r9530  
    33class DiaryPeer extends BaseDiaryPeer
    44{
     5  public static function retrieveByMemberId($memberId, $limit = 5)
     6  {
     7    $c = new Criteria();
     8    $c->add(DiaryPeer::MEMBER_ID, $memberId);
     9    $c->addDescendingOrderByColumn(DiaryPeer::CREATED_AT);
     10    $c->setLimit($limit);
     11    return DiaryPeer::doSelect($c);
     12  }
     13
    514  public static function retrieveDiaryPager($page = 1, $size = 20)
    615  {
Note: See TracChangeset for help on using the changeset viewer.