Prado\Web\UI\WebControls\TDataList::bubbleEvent PHP Method

bubbleEvent() public method

If the event parameter is {@link TDataListCommandEventParameter} and the command name is a recognized one, which includes 'select', 'edit', 'delete', 'update', and 'cancel' (case-insensitive), then a corresponding command event is also raised (such as {@link onEditCommand OnEditCommand}). This method should only be used by control developers.
public bubbleEvent ( $sender, $param ) : boolean
return boolean whether the event bubbling should stop here.
    public function bubbleEvent($sender, $param)
    {
        if ($param instanceof TDataListCommandEventParameter) {
            $this->onItemCommand($param);
            $command = $param->getCommandName();
            if (strcasecmp($command, self::CMD_SELECT) === 0) {
                if (($item = $param->getItem()) instanceof IItemDataRenderer) {
                    $this->setSelectedItemIndex($item->getItemIndex());
                }
                $this->onSelectedIndexChanged($param);
                return true;
            } else {
                if (strcasecmp($command, self::CMD_EDIT) === 0) {
                    $this->onEditCommand($param);
                    return true;
                } else {
                    if (strcasecmp($command, self::CMD_DELETE) === 0) {
                        $this->onDeleteCommand($param);
                        return true;
                    } else {
                        if (strcasecmp($command, self::CMD_UPDATE) === 0) {
                            $this->onUpdateCommand($param);
                            return true;
                        } else {
                            if (strcasecmp($command, self::CMD_CANCEL) === 0) {
                                $this->onCancelCommand($param);
                                return true;
                            }
                        }
                    }
                }
            }
        }
        return false;
    }
TDataList