Changeset View
Changeset View
Standalone View
Standalone View
plugins/kolab_tags/lib/kolab_tags_engine.php
Show First 20 Lines • Show All 478 Lines • ▼ Show 20 Lines | class kolab_tags_engine | ||||
/** | /** | ||||
* "Convert" tag object to simple array for use in javascript | * "Convert" tag object to simple array for use in javascript | ||||
*/ | */ | ||||
private function parse_tag($tag, $list = false, $force = true) | private function parse_tag($tag, $list = false, $force = true) | ||||
{ | { | ||||
$result = array( | $result = array( | ||||
'uid' => $tag['uid'], | 'uid' => $tag['uid'], | ||||
'name' => $tag['name'], | 'name' => $tag['name'], | ||||
'color' => $tag['color'], | 'color' => $tag['color'] ?? null, | ||||
); | ); | ||||
if ($list) { | if ($list) { | ||||
$result['uids'] = $this->get_tag_messages($tag, $force); | $result['uids'] = $this->get_tag_messages($tag, $force); | ||||
} | } | ||||
return $result; | return $result; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |