mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +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
|
* Check if the folder is subfolder
|
||||||
*
|
*
|
||||||
* This function checks if the passed folder is a subfolder of the current
|
* This method checks if the current folder is in the path of the
|
||||||
* folder.
|
* 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
|
* @param SeedDMS_Core_Folder $subfolder folder to be checked if it is
|
||||||
* @return bool true if passes folder is a subfolder
|
* a subfolder on any level of the current folder
|
||||||
|
* @return bool true if passed folder is a subfolder, otherwise false
|
||||||
*/
|
*/
|
||||||
function isSubFolder($subfolder) { /* {{{ */
|
function isSubFolder($subfolder) { /* {{{ */
|
||||||
$target_path = $subfolder->getPath();
|
$target_path = $subfolder->getPath();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user