system/modules/DocumentManagementSystem/classes/pojos/Category.php
public function hasDocumentsInSubCategories()
	{
		if ($this->hasSubCategories())
		{
			foreach ($this->arrSubCategories as $subCategory)
			{
				if ($subCategory->hasDocuments() || $subCategory->hasDocumentsInSubCategories())
				{
					return true;
				}
			}
		}
		return false;
	}
public function hasDocumentsInSubCategories()
	{
		if ($this->hasSubCategories())
		{
			foreach ($this->arrSubCategories as $subCategory)
			{
				if ($subCategory->hasDocuments() || $subCategory->hasDocumentsInSubCategories())
				{
					return true;
				}
			}
		}
		return false;
	}
public function hasDocumentsInSubCategories ( ) { if ( $ this -> hasSubCategories ( ) ) { foreach ( $ this -> arrSubCategories as $ subCategory ) { if ( $ subCategory -> hasDocuments ( ) || $ subCategory -> hasDocumentsInSubCategories ( ) ) { return true ; } } } return false ; }
Return if this category has documents in any of its subcategories.

@return	bool	True if there are documents in any the subcategories.
Return if this category has documents in any of its subcategories .