mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
add more documentation for isSubFolder()
This commit is contained in:
parent
674002c02f
commit
5a587e5c85
|
@ -383,11 +383,15 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
|
|||
/**
|
||||
* Check if the folder is subfolder
|
||||
*
|
||||
* This function checks if the passed folder is a subfolder of the current
|
||||
* folder.
|
||||
* This method checks if the current folder is in the path of the
|
||||
* passed subfolder. In that case the current folder is a parent,
|
||||
* grant parent, grant grant parent, etc. of the subfolder or
|
||||
* to say it differently the passed folder is somewhere below the
|
||||
* current folder.
|
||||
*
|
||||
* @param SeedDMS_Core_Folder $subfolder
|
||||
* @return bool true if passes folder is a subfolder
|
||||
* @param SeedDMS_Core_Folder $subfolder folder to be checked if it is
|
||||
* a subfolder on any level of the current folder
|
||||
* @return bool true if passed folder is a subfolder, otherwise false
|
||||
*/
|
||||
function isSubFolder($subfolder) { /* {{{ */
|
||||
$target_path = $subfolder->getPath();
|
||||
|
|
Loading…
Reference in New Issue
Block a user