CoolCMS API

SupplierPickerTrait

Picker of the default supplier of a stock item.

A single-field picker (like PagePickerTrait) without fieldMap: the item copies nothing else from the supplier, only the FK (the object-graph association StockItem.supplier).

Table of Contents

Properties

$supplierManager  : SupplierManager

Methods

supplierPicker()  : PickerConfig
resolveSupplierLabel()  : string|null
suggestSuppliers()  : array<int, array{id: int, label: string}>
supplierLabel()  : string

Properties

Methods

resolveSupplierLabel()

private resolveSupplierLabel(int $id) : string|null
Parameters
$id : int
Return values
string|null

suggestSuppliers()

private suggestSuppliers(string $query) : array<int, array{id: int, label: string}>
Parameters
$query : string
Return values
array<int, array{id: int, label: string}>
On this page

Search results