summaryrefslogtreecommitdiffstats
path: root/class/TableAcls.php
diff options
context:
space:
mode:
Diffstat (limited to 'class/TableAcls.php')
-rw-r--r--class/TableAcls.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/class/TableAcls.php b/class/TableAcls.php
index bbf72a1..9ef71ae 100644
--- a/class/TableAcls.php
+++ b/class/TableAcls.php
@@ -59,5 +59,27 @@ class TableAcls extends CommonTable
) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
$this->exec($sql);
}
+
+ /**
+ * return the owner list for a package, or pattern of package
+ *
+ * @param string $name name or SQL pattern
+ *
+ * @return array of strings
+ */
+ public function getOwners($name) {
+
+ $crit = array(
+ 'DISTINCT' => true,
+ 'FIELDS' => 'owner',
+ 'ORDER' => 'owner',
+ 'name' => $name
+ );
+ $tab = array();
+ foreach ($this->request($crit) as $data) {
+ $tab[] = $data['owner'];
+ }
+ return $tab;
+ }
}
?> \ No newline at end of file