addColumn('date', 'added', [ 'title' => 'Created', 'orderBy' => 'added', 'initCallback' => [$this, 'initVendorBlacklistColumn'], ]); $this->addColumn('text', 'dbaName', [ 'title' => 'DBA Name', 'orderBy' => 'dbaName', 'initCallback' => [$this, 'initVendorBlacklistColumn'], ]); $this->addColumn('text', 'businessName', [ 'title' => 'Legal Business Name', 'orderBy' => 'businessName', 'initCallback' => [$this, 'initVendorBlacklistColumn'], ]); $this->addColumn('text', 'soleProprietorName', [ 'title' => 'Main Contact', 'orderBy' => 'soleProprietorName', 'initCallback' => [$this, 'initVendorBlacklistColumn'], ]); $this->addColumn('count', 'licensesCount', [ 'title' => 'Licenses', 'viewUrl' => LicenseAdminView::getPage('url') . '?vendorId={id}', 'newUrl' => LicenseAdminView::getPage('url') . '?action=new&vendorId={id}', 'emptyValue' => 'no licenses', 'orderBy' => 'licensesCount', 'initCallback' => [$this, 'initVendorBlacklistColumn'], ]); $this->addColumn('options', 'options', [ 'initCallback' => [$this, 'initVendorBlacklistColumn'], ]); return $this; } }