mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
- added function setDMS()
- remove spaces
This commit is contained in:
parent
aa0f628f77
commit
7a6e0a622f
|
@ -37,18 +37,22 @@ function addKeywordCategory($owner, $name) {
|
|||
return LetoDMS_KeywordCategory::addKeywordCategory($owner, $name);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------
|
||||
class LetoDMS_KeywordCategory
|
||||
{
|
||||
//---------------------------------------------------------------------------
|
||||
class LetoDMS_KeywordCategory {
|
||||
var $_id;
|
||||
var $_ownerID;
|
||||
var $_name;
|
||||
var $_dms;
|
||||
|
||||
function LetoDMS_KeywordCategory($id, $ownerID, $name)
|
||||
{
|
||||
function LetoDMS_KeywordCategory($id, $ownerID, $name) {
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_ownerID = $ownerID;
|
||||
$this->_dms = null;
|
||||
}
|
||||
|
||||
function setDMS($dms) {
|
||||
$this->_dms = $dms;
|
||||
}
|
||||
|
||||
function getKeywordCategory($id) {
|
||||
|
@ -137,8 +141,7 @@ class LetoDMS_KeywordCategory
|
|||
return $this->_owner;
|
||||
}
|
||||
|
||||
function setName($newName)
|
||||
{
|
||||
function setName($newName) {
|
||||
GLOBAL $db;
|
||||
|
||||
$queryStr = "UPDATE tblKeywordCategories SET name = '$newName' WHERE id = ". $this->_id;
|
||||
|
@ -189,8 +192,7 @@ class LetoDMS_KeywordCategory
|
|||
return $db->getResult($queryStr);
|
||||
}
|
||||
|
||||
function remove()
|
||||
{
|
||||
function remove() {
|
||||
GLOBAL $db;
|
||||
|
||||
$queryStr = "DELETE FROM tblKeywords WHERE category = " . $this->_id;
|
||||
|
|
Loading…
Reference in New Issue
Block a user