Exemplo n.º 1
0
 public function inbox($id = null)
 {
     $profileId = UserHelper::getProfileId();
     $this->mail = fRecordSet::build('Mail', array('receiver=|sender=' => array($profileId, $profileId), 'parent=' => -1), array('timestamp' => 'desc'))->getRecords();
     TweetHelper::sort($this->mail);
     $this->dest = $id;
     $this->render('mail/index');
 }
Exemplo n.º 2
0
 public function index()
 {
     $this->tweets = fRecordSet::build('Tweet', array(), array('timestamp' => 'desc'), ACTIVITIES_LIMIT)->getRecords();
     TweetHelper::sort($this->tweets);
     $this->render('tweet/index');
 }