Commit 1aba00bc91a4064fe478b8b83b03b90fa7669aec
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
Showing
1 changed file
with
5 additions
and
5 deletions
lib/documentmanagement/MetaData.inc
| @@ -51,7 +51,7 @@ class MetaData extends KTEntity { | @@ -51,7 +51,7 @@ class MetaData extends KTEntity { | ||
| 51 | */ | 51 | */ |
| 52 | function MetaData($iNewDocFieldID = null,$sNewName = null, $iNewParent = null) { | 52 | function MetaData($iNewDocFieldID = null,$sNewName = null, $iNewParent = null) { |
| 53 | //object not created yet | 53 | //object not created yet |
| 54 | - $this->iDocFieldID = $iNewDocFieldID; | 54 | + $this->iDocFieldId = $iNewDocFieldID; |
| 55 | $this->sName = $sNewName; | 55 | $this->sName = $sNewName; |
| 56 | $this->iTreeParent = $iNewParent; | 56 | $this->iTreeParent = $iNewParent; |
| 57 | } | 57 | } |
| @@ -59,8 +59,8 @@ class MetaData extends KTEntity { | @@ -59,8 +59,8 @@ class MetaData extends KTEntity { | ||
| 59 | function getID() { return $this->iId; } | 59 | function getID() { return $this->iId; } |
| 60 | function getName() { return $this->sName; } | 60 | function getName() { return $this->sName; } |
| 61 | function setName($sNewValue) { $this->sName = $sNewValue; } | 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 | function getTreeParent() { return $this->iTreeParent; } | 64 | function getTreeParent() { return $this->iTreeParent; } |
| 65 | function setTreeParent($iNewValue) { $this->iTreeParent = $iNewValue; } | 65 | function setTreeParent($iNewValue) { $this->iTreeParent = $iNewValue; } |
| 66 | 66 | ||
| @@ -83,12 +83,12 @@ class MetaData extends KTEntity { | @@ -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 | global $default; | 88 | global $default; |
| 89 | $sql = $default->db; | 89 | $sql = $default->db; |
| 90 | $sQuery = "SELECT id FROM $default->metadata_table WHERE document_field_id = ? and name = ?";/*ok*/ | 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 | $result = $sql->query(array($sQuery, $aParams)); | 92 | $result = $sql->query(array($sQuery, $aParams)); |
| 93 | if ($result) { | 93 | if ($result) { |
| 94 | if ($sql->next_record()) { | 94 | if ($sql->next_record()) { |