mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
add new method SeedDMS_Core_Document::isLatestContent()
This commit is contained in:
parent
ad8a501506
commit
b083ebb40e
|
@ -1806,6 +1806,17 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if a given version is the latest version of the document
|
||||||
|
*
|
||||||
|
* @param integer $version version number of content element
|
||||||
|
* @return SeedDMS_Core_DocumentContent|boolean object of class {@link SeedDMS_Core_DocumentContent}
|
||||||
|
* or false
|
||||||
|
*/
|
||||||
|
function isLatestContent($version) { /* {{{ */
|
||||||
|
return $this->getLatestContent()->getVersion() == $version;
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool|null|SeedDMS_Core_DocumentContent
|
* @return bool|null|SeedDMS_Core_DocumentContent
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
- add method SeedDMS_Core_Document::setParent() as an alias for setFolder()
|
- add method SeedDMS_Core_Document::setParent() as an alias for setFolder()
|
||||||
- clear the save content list and latest content in SeedDMS_Core_Document after
|
- clear the save content list and latest content in SeedDMS_Core_Document after
|
||||||
a version has been deleted.
|
a version has been deleted.
|
||||||
|
- new method SeedDMS_Core_Document::isLatestVersion()
|
||||||
</notes>
|
</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir baseinstalldir="SeedDMS" name="/">
|
<dir baseinstalldir="SeedDMS" name="/">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user