2024-10-08 13:16:57 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace kernel\IGTabel\action_column;
|
|
|
|
|
|
|
|
use Itguild\Tables\ActionColumn\ActionColumn;
|
2024-11-18 16:04:57 +03:00
|
|
|
use kernel\helpers\Debug;
|
2024-10-08 13:16:57 +03:00
|
|
|
|
|
|
|
class ViewActionColumn extends ActionColumn
|
|
|
|
{
|
2024-11-18 16:04:57 +03:00
|
|
|
protected string $prefix = '/view/';
|
2024-10-08 13:16:57 +03:00
|
|
|
|
|
|
|
public function fetch(): string
|
|
|
|
{
|
|
|
|
$link = $this->baseUrl . $this->prefix . $this->id;
|
|
|
|
return " <a href='$link' class='btn btn-primary'>Просмотр</a> ";
|
|
|
|
}
|
|
|
|
}
|