Index: branches/unlabeled/unlabeled-1.21.4/core/kernel/db/dblist.php =================================================================== diff -u -r7035 -r7037 --- branches/unlabeled/unlabeled-1.21.4/core/kernel/db/dblist.php (.../dblist.php) (revision 7035) +++ branches/unlabeled/unlabeled-1.21.4/core/kernel/db/dblist.php (.../dblist.php) (revision 7037) @@ -627,9 +627,32 @@ function GetDBField($name) { $row =& $this->getCurrentRecord(); + return $row[$name]; } + /** + * Returns ID of currently processed record + * + * @return int + * @access public + */ + function GetID() + { + return $this->Queried ? $this->GetDBField($this->IDField) : null; + } + + /** + * Allows kDBTagProcessor.SectionTitle to detect if it's editing or new item creation + * + * @return bool + */ + function IsNewItem() + { + // no such thing as NewItem for lists :) + return false; + } + function HasField($name) { $row =& $this->getCurrentRecord();