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'); }
public function index() { $this->tweets = fRecordSet::build('Tweet', array(), array('timestamp' => 'desc'), ACTIVITIES_LIMIT)->getRecords(); TweetHelper::sort($this->tweets); $this->render('tweet/index'); }