Commit d0ceadd3e50fe952cc300be023bd55ce33ecfd7a

Authored by Neil Blakey-Milner
1 parent c3b3f98b

Remove unused method deleteAllFieldLinks


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4873 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/documentmanagement/DocumentType.inc
@@ -150,27 +150,6 @@ class DocumentType extends KTEntity { @@ -150,27 +150,6 @@ class DocumentType extends KTEntity {
150 } 150 }
151 151
152 /** 152 /**
153 - * Delete the current document from the database. Set the primary key to -1  
154 - * on successful deletion  
155 - *  
156 - * @return boolean true and reset id to -1 on successful deletion, false otherwise and set $_SESSION["errorMessage"]  
157 - */  
158 - function deleteAllFieldLinks() {  
159 - global $default, $lang_err_database, $lang_err_object_key;  
160 - if ($this->iId >= 0) {  
161 - $sql = $default->db;  
162 - $result = $sql->query("DELETE FROM " . $default->document_type_fields_table . " WHERE document_type_id = $this->iId");  
163 - if ($result) {  
164 - $this->iId = -1;  
165 - return true;  
166 - }  
167 - $_SESSION["errorMessage"] = $lang_err_database;  
168 - return false;  
169 - }  
170 - $_SESSION["errorMessage"] = $lang_err_object_key;  
171 - return false;  
172 - }  
173 - /**  
174 * Static function. 153 * Static function.
175 * Given a document_fields primary key it will create a 154 * Given a document_fields primary key it will create a
176 * DocumentTypes object and populate it with the 155 * DocumentTypes object and populate it with the