API / Minn\Front / FeedWriter

FeedWriter final class

Minn\Front\FeedWriter · public/minn/src/Minn/Front/FeedWriter.php · 57 lines

A feed as it is written: text as given, and what each template tag and action prints, in the order the template asks for them.

Constants and properties

privatestring $out

Public

methodput(string ...$text): self#

Text as written.

methodtag(string $function, mixed ...$args): self#

What a function that prints (a template tag) prints, called with its arguments.

methodcdata(string $function, mixed ...$args): self#

What a template tag prints, for inside a CDATA section: a "]]>" in it is split so it cannot close the section (a hardening rule; the reference lets a stored name break out, contracts/front/probes.md).

staticinsideCdata(string $text): string#

Text made safe inside a CDATA section: "]]>" becomes "]]]]><![CDATA[>", which a reader joins back into the same characters.

methodact(string $hook, mixed ...$args): self#

What an action's callbacks print.

methodtext(): string#

Everything written so far.