| @@ 115-127 (lines=13) @@ | ||
| 112 | /** |
|
| 113 | * @return array Array of Listeners |
|
| 114 | */ |
|
| 115 | public function getListeners() |
|
| 116 | { |
|
| 117 | $ret = array(); |
|
| 118 | $qb = $this->db2->createXoopsQueryBuilder(); |
|
| 119 | $qb->select('plugin_listener') |
|
| 120 | ->fromPrefix('plugins_plugin', '') |
|
| 121 | ->groupBy('plugin_listener'); |
|
| 122 | $result = $qb->execute(); |
|
| 123 | while ($row = $result->fetch(\PDO::FETCH_ASSOC)) { |
|
| 124 | $ret[$row['plugin_listener']] = $this->getModuleName($row['plugin_listener']); |
|
| 125 | } |
|
| 126 | return $ret; |
|
| 127 | } |
|
| 128 | ||
| 129 | /** |
|
| 130 | * @return array Array of Callers |
|
| @@ 132-144 (lines=13) @@ | ||
| 129 | /** |
|
| 130 | * @return array Array of Callers |
|
| 131 | */ |
|
| 132 | public function getCallers() |
|
| 133 | { |
|
| 134 | $ret = array(); |
|
| 135 | $qb = $this->db2->createXoopsQueryBuilder(); |
|
| 136 | $qb->select('plugin_caller') |
|
| 137 | ->fromPrefix('plugins_plugin', '') |
|
| 138 | ->groupBy('plugin_caller'); |
|
| 139 | $result = $qb->execute(); |
|
| 140 | while ($row = $result->fetch(\PDO::FETCH_ASSOC)) { |
|
| 141 | $ret[$row['plugin_caller']] = $this->getModuleName($row['plugin_caller']); |
|
| 142 | } |
|
| 143 | return $ret; |
|
| 144 | } |
|
| 145 | ||
| 146 | /** |
|
| 147 | * Gets the module name but checks if it is active or not |
|