Commit 1aba00bc91a4064fe478b8b83b03b90fa7669aec

Authored by Neil Blakey-Milner
1 parent cc1fa29e

Standardise on 'Id' endings and not 'ID'.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3746 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/documentmanagement/MetaData.inc
... ... @@ -51,7 +51,7 @@ class MetaData extends KTEntity {
51 51 */
52 52 function MetaData($iNewDocFieldID = null,$sNewName = null, $iNewParent = null) {
53 53 //object not created yet
54   - $this->iDocFieldID = $iNewDocFieldID;
  54 + $this->iDocFieldId = $iNewDocFieldID;
55 55 $this->sName = $sNewName;
56 56 $this->iTreeParent = $iNewParent;
57 57 }
... ... @@ -59,8 +59,8 @@ class MetaData extends KTEntity {
59 59 function getID() { return $this->iId; }
60 60 function getName() { return $this->sName; }
61 61 function setName($sNewValue) { $this->sName = $sNewValue; }
62   - function getDocFieldID() { return $this->iDocFieldID; }
63   - function setDocFieldID($iNewValue) { $this->iDocFieldID = $iNewValue; }
  62 + function getDocFieldId() { return $this->iDocFieldId; }
  63 + function setDocFieldId($iNewValue) { $this->iDocFieldId = $iNewValue; }
64 64 function getTreeParent() { return $this->iTreeParent; }
65 65 function setTreeParent($iNewValue) { $this->iTreeParent = $iNewValue; }
66 66  
... ... @@ -83,12 +83,12 @@ class MetaData extends KTEntity {
83 83 *
84 84 */
85 85  
86   - function setMetaDataID($iDocFieldID, $sMetaDataName)
  86 + function setMetaDataID($iDocFieldId, $sMetaDataName)
87 87 {
88 88 global $default;
89 89 $sql = $default->db;
90 90 $sQuery = "SELECT id FROM $default->metadata_table WHERE document_field_id = ? and name = ?";/*ok*/
91   - $aParams = array($iDocFieldID, $sMetaDataName);
  91 + $aParams = array($iDocFieldId, $sMetaDataName);
92 92 $result = $sql->query(array($sQuery, $aParams));
93 93 if ($result) {
94 94 if ($sql->next_record()) {
... ...