diff --git a/SeedDMS_Core/Core/inc.ClassDocument.php b/SeedDMS_Core/Core/inc.ClassDocument.php index d9ca707bf..4b2f9e89b 100644 --- a/SeedDMS_Core/Core/inc.ClassDocument.php +++ b/SeedDMS_Core/Core/inc.ClassDocument.php @@ -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 */