Field::fieldname

Version 3.7

Joined pages

Return Pages -object with all joined pages.

Property names can be chained to methods in Pages -object and even further method/property in the first Page -object.

Return value

Object Pages

Full documentation

List all order rows:

foreach ( $Order->order_rows as $OrderRow ){
    $OrderRows[] = "<div>{$OrderRow->name} {$OrderRow->price}</div>";
}

// This is shorthand for:
foreach ( $Order->order_rows->sivut() as $OrderRow ){ ... }

If chained further, returns call to first Page:

$phone = $Order->client->phone;

// This is shorthand for:
$phone = $Order->client->sivu()->phone;