Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/storage/transcript/HeraldTranscript.php
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | queryfx( | ||||
self::TABLE_SAVED_HEADER, | self::TABLE_SAVED_HEADER, | ||||
$phid, | $phid, | ||||
$header); | $header); | ||||
return $header; | return $header; | ||||
} | } | ||||
private static function combineXHeraldRulesHeaders($u, $v) { | private static function combineXHeraldRulesHeaders($u, $v) { | ||||
if ($u === null) { | |||||
return $v; | |||||
} | |||||
$u = preg_split('/[, ]+/', $u); | $u = preg_split('/[, ]+/', $u); | ||||
$v = preg_split('/[, ]+/', $v); | $v = preg_split('/[, ]+/', $v); | ||||
$combined = array_unique(array_filter(array_merge($u, $v))); | $combined = array_unique(array_filter(array_merge($u, $v))); | ||||
return implode(', ', $combined); | return implode(', ', $combined); | ||||
} | } | ||||
public static function loadXHeraldRulesHeader($phid) { | public static function loadXHeraldRulesHeader($phid) { | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |