(Lea) View\DataIndex

Mardi 01 Avril 2025, 11:12:00

<?php
/**
* Lea
*
* GNU General Public License
*
* Copyright © 2010 - 2025, Yohann Schwan. All rights reserved.
*/
namespace Lea\View {

class
DataIndex extends \Lys\View
{
/**
* @args string $str = ''
* @return void
*/
function send($str = '')
{
$str = $this->fallback($str);

# List of Items
$str .= ''
. '<nav class="inner">';

foreach(
$this->listOf($prefix = $this['route']['prefix_name']) as $row)
{
$str .= ''
. '<span class="u1 ' . $this->status($prefix . '_item', $row) . '">#'
. $this->a($prefix . '_item', $row)
.
'</span>';
}

$str .= ''
. '</nav>';

# Ok !
return parent::send($str);
}
}
}