Commit ab9e8d3f1bda50745bdcd7adc4cc73d9a5206a7b

Authored by nbm
1 parent 2724c944

Remove unused static methods getDefaultFolderDocumentType and

folderIsLinkedToDocType


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4875 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 0 additions and 40 deletions
lib/foldermanagement/Folder.inc
@@ -419,29 +419,6 @@ class Folder extends KTEntity { @@ -419,29 +419,6 @@ class Folder extends KTEntity {
419 419
420 /** 420 /**
421 * Static function 421 * Static function
422 - * Gets the default document type for a folder (where default is simply the first one)  
423 - *  
424 - * @param $iFolderID  
425 - *  
426 - * @return integer document type primary key, false otherwise and set $_SESSION["errorMessage"]  
427 - */  
428 - function getDefaultFolderDocumentType($iFolderID) {  
429 - global $default, $lang_err_database;  
430 - if (Folder::folderExistsID($iFolderID)) {  
431 - $sql = $default->db;  
432 - $sql->query(array("SELECT document_type_id FROM " . $default->folder_doctypes_table . " WHERE folder_id = ?", $iFolderID));/*ok*/  
433 - if ($sql->next_record()) {  
434 - return $sql->f("document_type_id");  
435 - }  
436 - $_SESSION["errorMessage"] = $lang_err_database;  
437 -  
438 - }  
439 - //error message set by Folder::folderExists  
440 - return false;  
441 - }  
442 -  
443 - /**  
444 - * Static function  
445 * Checks if a given folder already exists using the folder name 422 * Checks if a given folder already exists using the folder name
446 * 423 *
447 * @param $sName Name of folder 424 * @param $sName Name of folder
@@ -516,23 +493,6 @@ class Folder extends KTEntity { @@ -516,23 +493,6 @@ class Folder extends KTEntity {
516 return false; 493 return false;
517 } 494 }
518 495
519 - /**  
520 - * Checks if a document type is already  
521 - * linked to a folder  
522 - *  
523 - */  
524 - function folderIsLinkedToDocType($iFolderID, $iDocTypeID) {  
525 - global $default;  
526 - $sql = $default->db;  
527 - $sQuery = "SELECT id FROM $default->folder_doctypes_table WHERE document_type_id = ? and folder_id = ?";/*ok*/  
528 - $aParams = array($iDocTypeID, $iFolderID);  
529 - $sql->query(array($sQuery, $aParams));  
530 - if ($sql->next_record()) {  
531 - return true;  
532 - }  
533 - return false;  
534 - }  
535 -  
536 function getByParentIDAndLookupID($iParentID, $iLookupID) { 496 function getByParentIDAndLookupID($iParentID, $iLookupID) {
537 return KTEntityUtil::getByDict('Folder', array( 497 return KTEntityUtil::getByDict('Folder', array(
538 'parent_id' => $iParentID, 498 'parent_id' => $iParentID,