HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/apklausos/application/extensions/admin/grid/BarActionsWidget/BarActionsWidget.php
<?php

Yii::import('zii.widgets.grid.CGridView');

/**
 * Renders a list of actions available for each CGridView row.
 */
class BarActionsWidget extends CWidget
{
    /**
     * @var int $id A static counter to generate unique IDs for each widget instance.
     */
    private static $id = 1;

    /**
     * @var array Available actions for table row
     */
    public $items = [];


    /** Executes the widget
     * @throws CException
     */
    public function run(): void
    {
        self::$id++;
        $this->render('action_list', [
            'items' => $this->items,
            'id' => self::$id
        ]);
    }
}