summaryrefslogtreecommitdiff
path: root/plugins/auto_assign_labels/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/auto_assign_labels/init.php')
-rwxr-xr-xplugins/auto_assign_labels/init.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/auto_assign_labels/init.php b/plugins/auto_assign_labels/init.php
index 786720d95..b2e5718ea 100755
--- a/plugins/auto_assign_labels/init.php
+++ b/plugins/auto_assign_labels/init.php
@@ -1,9 +1,6 @@
<?php
class Auto_Assign_Labels extends Plugin {
- /* @var PluginHost $host */
- private $host;
-
function about() {
return array(null,
"Assign labels automatically based on article title, content, and tags",
@@ -11,12 +8,15 @@ class Auto_Assign_Labels extends Plugin {
}
function init($host) {
- $this->host = $host;
-
$host->add_hook($host::HOOK_ARTICLE_FILTER, $this);
}
- function get_all_labels_filter_format($owner_uid) {
+ /**
+ * @param int $owner_uid
+ * @return array<int, array<int, int|string>>
+ * @throws PDOException
+ */
+ private function get_all_labels_filter_format(int $owner_uid) : array {
$rv = array();
// TODO: use Labels::get_all()