461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
|
'id' => $id,
'titre' => $res->titre,
'uri' => $res->uri,
];
if ($id == $res->parent)
{
throw new Exception('Parent! ' . $id . '/' . $res->parent);
}
$id = (int)$res->parent;
}
return array_reverse($flat);
}
|
|
|
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
|
'id' => $id,
'titre' => $res->titre,
'uri' => $res->uri,
];
if ($id == $res->parent)
{
throw new \Exception('Parent! ' . $id . '/' . $res->parent);
}
$id = (int)$res->parent;
}
return array_reverse($flat);
}
|