Example #1
0
 /**
  * 
  * @param string $fkEntryId
  * @return boolean|string
  */
 public function fetchLatestVoteForEntry($fkEntryId = null)
 {
     if (is_null($fkEntryId)) {
         $fkEntryId = $this->getFkEntryId();
     }
     if (is_null($fkEntryId)) {
         return false;
     }
     $modelVote = new Model_Vote();
     $result = $modelVote->selectLatestVoteByEntry($fkEntryId);
     if ($result === false) {
         return false;
     } else {
         return $result['ts'];
     }
 }