/** * Prepares the default column configuration for the grid view * * @return mixed the default column configuration for the gridview */ protected function createColumnConfig() { //prepare column config return ['happened_at:datetime', AuditTrailHelper::createChangeTypeColumnConfig($this->changeTypeCallback), AuditTrailHelper::createUserIdColumnConfig($this->userIdCallback), AuditTrailHelper::createDataColumnConfig($this->dataTableOptions, $this->dataTableColumnWidths, $this->hiddenAttributes, $this->attributeOutput)]; }
protected static function createPrimaryKeyJson($model) { return AuditTrailHelper::createPrimaryKeyJson($model); }
public function setOwner($model) { $this->model_type = $model::className(); $this->foreign_pk = AuditTrailHelper::createPrimaryKeyJson($model); return $this; }