Skip to content

Kirby 5.0.2

Segment::factory()

Parses a segment into the property/method name and its arguments

Segment::factory(string $segment, int $position = 0): Kirby\Query\Segment

Parameters

Name Type Default Description
$segmentrequired string no default value
$position int 0 String position of the segment inside the full query

Return type

Kirby\Query\Segment

Parent class

Kirby\Query\Segment