Documentation

ManagesStacks

Table of Contents

$prepends  : array<string|int, mixed>
All of the finished, captured prepend sections.
$pushes  : array<string|int, mixed>
All of the finished, captured push sections.
$pushStack  : array<string|int, mixed>
The stack of in-progress push sections.
flushStacks()  : void
Flush all of the stacks.
startPrepend()  : void
Start prepending content into a push section.
startPush()  : void
Start injecting content into a push section.
stopPrepend()  : string
Stop prepending content into a push section.
stopPush()  : string
Stop injecting content into a push section.
yieldPushContent()  : string
Get the string contents of a push section.
extendPrepend()  : void
Prepend content to a given stack.
extendPush()  : void
Append content to a given push section.

Properties

$prepends

All of the finished, captured prepend sections.

protected array<string|int, mixed> $prepends = []

$pushes

All of the finished, captured push sections.

protected array<string|int, mixed> $pushes = []

$pushStack

The stack of in-progress push sections.

protected array<string|int, mixed> $pushStack = []

Methods

flushStacks()

Flush all of the stacks.

public flushStacks() : void
Return values
void

startPrepend()

Start prepending content into a push section.

public startPrepend(string $section[, string $content = '' ]) : void
Parameters
$section : string
$content : string = ''
Return values
void

startPush()

Start injecting content into a push section.

public startPush(string $section[, string $content = '' ]) : void
Parameters
$section : string
$content : string = ''
Return values
void

stopPrepend()

Stop prepending content into a push section.

public stopPrepend() : string
Tags
throws
InvalidArgumentException
Return values
string

stopPush()

Stop injecting content into a push section.

public stopPush() : string
Tags
throws
InvalidArgumentException
Return values
string

yieldPushContent()

Get the string contents of a push section.

public yieldPushContent(string $section[, string $default = '' ]) : string
Parameters
$section : string
$default : string = ''
Return values
string

extendPrepend()

Prepend content to a given stack.

protected extendPrepend(string $section, string $content) : void
Parameters
$section : string
$content : string
Return values
void

extendPush()

Append content to a given push section.

protected extendPush(string $section, string $content) : void
Parameters
$section : string
$content : string
Return values
void

Search results