/** * Compares two log item by date * @param LogItem $lhs The left hand side * @param LogItem $rhs The right hand side * @return boolean Returns trie if right hand side is null and lhs is not, or change date of lhs is after change date of rhs */ static function IsAfter(LogItem $lhs = null, LogItem $rhs = null) { if (!$lhs) { return false; } if (!$rhs) { return true; } return $lhs->GetChanged()->IsAfter($rhs->GetChanged()); }