private function _checkExpired($timestamp, $expiration) {
    $result = false;
    if ($expiration !== 0) {
      $timeDiff = time() - $timestamp;
      ($timeDiff > $expiration) ? $result = true : $result = false;
    }
    return $result;
  }
private function _checkExpired($timestamp, $expiration) {
    $result = false;
    if ($expiration !== 0) {
      $timeDiff = time() - $timestamp;
      ($timeDiff > $expiration) ? $result = true : $result = false;
    }
    return $result;
  }
private function _checkExpired ( $ timestamp , $ expiration ) { $ result = false ; if ( $ expiration !== 0 ) { $ timeDiff = time ( ) - $ timestamp ; ( $ timeDiff > $ expiration ) ? $ result = true : $ result = false ; } return $ result ; }
Check whether a timestamp is still in the duration

@param integer $timestamp
@param integer $expiration
@return boolean
Check whether a timestamp is still in the duration