add isType() for links and files, set _public to a bool value

This commit is contained in:
Uwe Steinmann 2022-03-02 07:36:16 +01:00
parent 54fb986a59
commit 313f518548

View File

@ -5550,9 +5550,18 @@ class SeedDMS_Core_DocumentLink { /* {{{ */
$this->_document = $document;
$this->_target = $target;
$this->_userID = $userID;
$this->_public = $public;
$this->_public = $public ? true : false;
}
/**
* Check if this object is of type 'documentlink'.
*
* @param string $type type of object
*/
public function isType($type) { /* {{{ */
return $type == 'documentlink';
} /* }}} */
/**
* @return int
*/
@ -5725,9 +5734,18 @@ class SeedDMS_Core_DocumentFile { /* {{{ */
$this->_orgFileName = $orgFileName;
$this->_name = $name;
$this->_version = $version;
$this->_public = $public;
$this->_public = $public ? true : false;
}
/**
* Check if this object is of type 'documentfile'.
*
* @param string $type type of object
*/
public function isType($type) { /* {{{ */
return $type == 'documentfile';
} /* }}} */
/**
* @return int
*/