mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
add isType() for links and files, set _public to a bool value
This commit is contained in:
parent
54fb986a59
commit
313f518548
|
@ -5550,9 +5550,18 @@ class SeedDMS_Core_DocumentLink { /* {{{ */
|
||||||
$this->_document = $document;
|
$this->_document = $document;
|
||||||
$this->_target = $target;
|
$this->_target = $target;
|
||||||
$this->_userID = $userID;
|
$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
|
* @return int
|
||||||
*/
|
*/
|
||||||
|
@ -5725,9 +5734,18 @@ class SeedDMS_Core_DocumentFile { /* {{{ */
|
||||||
$this->_orgFileName = $orgFileName;
|
$this->_orgFileName = $orgFileName;
|
||||||
$this->_name = $name;
|
$this->_name = $name;
|
||||||
$this->_version = $version;
|
$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
|
* @return int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user