Commit 5db6c042e95216306e247a95cefe2b5e3dade248

Authored by nbm
1 parent 16455840

Delete replaced get function - now uses the canonical way using

KTEntityUtil::get


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3680 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 0 additions and 28 deletions
lib/foldermanagement/Folder.inc
... ... @@ -300,34 +300,6 @@ class Folder extends KTEntity {
300 300 return substr($sChildString,0, strlen($sChildString)-1);
301 301 }
302 302  
303   - /**
304   - * Static function.
305   - * Given a folder primary key will create
306   - * a folder object and populate it with the corresponding
307   - * database values
308   - *
309   - * @param $iFolderID Primary key of folder to get
310   - *
311   - * @return Folder folder object on successful retrieval, false otherwise and set $_SESSION["errorMessage"]
312   - */
313   - /*
314   - function get($iFolderID) {
315   - global $default, $lang_err_object_not_exist;
316   - $sql = $default->db;
317   - $sql->query(array("SELECT * FROM " . $default->folders_table . " WHERE id = ?", $iFolderID));
318   - if ($sql->next_record()) {
319   - $oFolder = & new Folder($sql->f("name"), $sql->f("description"), $sql->f("parent_id"), $sql->f("creator_id"), $sql->f("unit_id"), $sql->f("is_public"));
320   - $oFolder->iId = $iFolderID;
321   - $oFolder->sFullPath = $sql->f("full_path");
322   - $oFolder->sParentFolderIDs = $sql->f("parent_folder_ids");
323   - $oFolder->iPermissionObjectID = $sql->f("permission_object_id");
324   - $oFolder->iPermissionLookupID = $sql->f("permission_lookup_id");
325   - return $oFolder;
326   - }
327   - $_SESSION["errorMessage"] = $lang_err_object_not_exist . "id = " . $iFolderID . " table = folders";
328   - return false;
329   - }
330   - */
331 303 function &get($iFolderID) {
332 304 return KTEntityUtil::get('Folder', $iFolderID);
333 305 }
... ...