From a55bb84057324f3ba1edc371c7f0be7db56688ea Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 11 Jan 2010 10:16:07 +1300 Subject: [PATCH] Add a utility IsCreate() method opposite to IsUpdate(). --- inc/classEditor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/classEditor.php b/inc/classEditor.php index e6effc05..54572ff2 100644 --- a/inc/classEditor.php +++ b/inc/classEditor.php @@ -222,6 +222,10 @@ class Editor return $is_update; } + function IsCreate() { + return ! $this->IsUpdate(); + } + function SetWhere( $where_clause ) { $this->Where = $where_clause; }