Skip to content

Commit b897ed8

Browse files
committed
more undestandable method using
1 parent 27a7206 commit b897ed8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

main/DAOs/GenericDAO.class.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ abstract class GenericDAO extends Singleton implements BaseDAO
1818
{
1919
private $identityMap = array();
2020

21-
protected $linkName = null;
21+
private $linkName = null;
2222

2323
abstract public function getTable();
2424
abstract public function getObjectName();
@@ -73,7 +73,7 @@ public function completeObject(Identifiable $object)
7373
**/
7474
public function getLinkName()
7575
{
76-
return $this->linkName;
76+
return $this->getDefaultLinkName();
7777
}
7878

7979
public function getIdName()
@@ -361,6 +361,11 @@ public function registerWorkerUncacher(UncacherBase $uncacher)
361361
DBPool::getByDao($this)->registerUncacher($uncacher);
362362
}
363363

364+
final protected function getDefaultLinkName()
365+
{
366+
return $this->linkName;
367+
}
368+
364369
protected function inject(
365370
InsertOrUpdateQuery $query,
366371
Identifiable $object

0 commit comments

Comments
 (0)