From 5382d2006c187d2e5aae1d4d38d0c1f9fc231fce Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Wed, 7 Aug 2019 16:07:51 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02429=20change=20visibility=20of=20\DBObj?= =?UTF-8?q?ect::GetReferencingObjects=20internal=20method=20In=20iTop,=20o?= =?UTF-8?q?nly=20called=20by=20\DBObject::MakeDeletionPlan=20which=20is=20?= =?UTF-8?q?private=20Not=20called=20in=20our=20extensions=20Not=20called/r?= =?UTF-8?q?edefined=20in=20any=20client=20customization?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/dbobject.class.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 0e0ab5132..15f3d5d34 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -4290,8 +4290,19 @@ abstract class DBObject implements iDisplay $oGraph->ComputeRelatedObjectsUp($sRelCode, $iMaxDepth, $bEnableRedundancy); return $oGraph; } - - public function GetReferencingObjects($bAllowAllData = false) + + /** + * @internal + * + * @param bool $bAllowAllData + * + * @return array keys : attribute (AttributeDefinition), objects (set of linked objects) + * @throws \CoreException + * @throws \MissingQueryArgument + * @throws \MySQLException + * @throws \MySQLHasGoneAwayException + */ + protected function GetReferencingObjects($bAllowAllData = false) { $aDependentObjects = array(); $aRererencingMe = MetaModel::EnumReferencingClasses(get_class($this));