1 | <?php |
||
17 | class RelationService implements SingletonInterface |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Get usage by Tag |
||
22 | * |
||
23 | * @param Tag $tag |
||
24 | * |
||
25 | * @return array|NULL |
||
26 | */ |
||
27 | public function getUsageByTag(Tag $tag) |
||
36 | |||
37 | /** |
||
38 | * Get related items by relation |
||
39 | * |
||
40 | * @param string $tableName |
||
41 | * @param int $id |
||
42 | */ |
||
43 | public function getRelatedItemsByRelation($tableName, $id) |
||
48 | |||
49 | /** |
||
50 | * get database abstraction object |
||
51 | * |
||
52 | * @return DatabaseConnection |
||
53 | */ |
||
54 | protected function getDatabaseConnection() |
||
58 | } |
||
59 |