summaryrefslogtreecommitdiff
path: root/plugins/Group_assign/Helper/SmallAvatarHelperExtend.php
diff options
context:
space:
mode:
authorDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2019-12-10 11:34:53 +0100
committerDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2019-12-10 11:34:53 +0100
commitb8fa0246803dab40cf57d40b45984c53046f2d55 (patch)
treedc92b167c7542137c385614a1d558e57669a4339 /plugins/Group_assign/Helper/SmallAvatarHelperExtend.php
parent2a43146236fd8fb16f84398d85720ad84aa0a0b1 (diff)
Plugins directory and local modifications
Diffstat (limited to 'plugins/Group_assign/Helper/SmallAvatarHelperExtend.php')
-rw-r--r--plugins/Group_assign/Helper/SmallAvatarHelperExtend.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/Group_assign/Helper/SmallAvatarHelperExtend.php b/plugins/Group_assign/Helper/SmallAvatarHelperExtend.php
new file mode 100644
index 00000000..1ee35c98
--- /dev/null
+++ b/plugins/Group_assign/Helper/SmallAvatarHelperExtend.php
@@ -0,0 +1,35 @@
+<?php
+
+namespace Kanboard\Plugin\Group_assign\Helper;
+
+use Kanboard\Helper\AvatarHelper;
+use Kanboard\Core\Base;
+/**
+ * Avatar Helper
+ *
+ * @package helper
+ * @author Frederic Guillot
+ */
+class SmallAvatarHelperExtend extends AvatarHelper
+{
+
+ public function smallMultiple($owner_ms, $css = '') {
+ $assignees = $this->multiselectMemberModel->getMembers($owner_ms);
+ $html = "";
+ foreach ($assignees as $assignee) {
+ $user = $this->userModel->getById($assignee['user_id']);
+ $html .= $this->render($assignee['user_id'], $user['username'], $user['name'], $user['email'], $user['avatar_path'], $css, 20);
+ }
+ return $html;
+ }
+
+ public function miniMultiple($owner_ms, $css = '') {
+ $assignees = $this->multiselectMemberModel->getMembers($owner_ms);
+ $html = "";
+ foreach ($assignees as $assignee) {
+ $user = $this->userModel->getById($assignee['user_id']);
+ $html .= $this->render($assignee['user_id'], $user['username'], $user['name'], $user['email'], $user['avatar_path'], $css, 13);
+ }
+ return $html;
+ }
+ }