system/modules/DocumentManagementSystem/classes/pojos/Category.php
public function shouldPublishDocumentsPerDefault()
	{
		if ($this->strPublishDocumentsPerDefault == self::PUBLISH_DOCUMENTS_PER_DEFAULT_ENABLE)
		{
			return true;
		}
		else if ($this->strPublishDocumentsPerDefault == self::PUBLISH_DOCUMENTS_PER_DEFAULT_INHERIT && $this->hasParentCategory())
		{
			return $this->parentCategory->shouldPublishDocumentsPerDefault();
		}
		return false;
	}
public function shouldPublishDocumentsPerDefault()
	{
		if ($this->strPublishDocumentsPerDefault == self::PUBLISH_DOCUMENTS_PER_DEFAULT_ENABLE)
		{
			return true;
		}
		else if ($this->strPublishDocumentsPerDefault == self::PUBLISH_DOCUMENTS_PER_DEFAULT_INHERIT && $this->hasParentCategory())
		{
			return $this->parentCategory->shouldPublishDocumentsPerDefault();
		}
		return false;
	}
public function shouldPublishDocumentsPerDefault ( ) { if ( $ this -> strPublishDocumentsPerDefault == self :: PUBLISH_DOCUMENTS_PER_DEFAULT_ENABLE ) { return true ; } else if ( $ this -> strPublishDocumentsPerDefault == self :: PUBLISH_DOCUMENTS_PER_DEFAULT_INHERIT && $ this -> hasParentCategory ( ) ) { return $ this -> parentCategory -> shouldPublishDocumentsPerDefault ( ) ; } return false ; }
Return if documents uploaded to this category should be published per default.

@return	bool	If documents uploaded to this category should be published per default or not.
Return if documents uploaded to this category should be published per default .