Chora::getTags PHP Méthode

getTags() public static méthode

Return a list of tags for a given log entry.
public static getTags ( Horde_Vcs_Log $lg, string $where ) : array
$lg Horde_Vcs_Log The Horde_Vcs_Log object.
$where string The current filepath.
Résultat array An array of linked tags.
    public static function getTags($lg, $where)
    {
        $tags = array();
        foreach ($lg->getSymbolicBranches() as $symb => $bra) {
            $tags[] = self::url('browsefile', $where, array('onb' => $bra))->link() . htmlspecialchars($symb) . '</a>';
        }
        foreach ($lg->getTags() as $tag) {
            $tags[] = htmlspecialchars($tag);
        }
        return $tags;
    }