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'); }
</figure> </aside> <h3> <a href="<?php echo SITE_BASE; ?> /profile/<?php echo $profile->getId(); ?> "><?php echo htmlspecialchars($profile->getDisplayName()); ?> </a> <span>:</span> <span><?php echo TweetHelper::replaceEmotion(htmlspecialchars($tweet->getContent())); ?> </span> </h3> <div class="details"> <div class="legend"> <span class="duration"><?php echo $tweet->getTimestamp()->getFuzzyDifference(); ?> </span> <a class="reply" href="javascript:void(0)"> 回复<?php if ($cc = $tweet->getComments()->count()) { ?> (<?php echo $cc;
public function index() { $this->tweets = fRecordSet::build('Tweet', array(), array('timestamp' => 'desc'), ACTIVITIES_LIMIT)->getRecords(); TweetHelper::sort($this->tweets); $this->render('tweet/index'); }