table = 'cms_logs'; $this->primary_key = 'id'; $this->title_field = "ipaddress"; $this->button_bulk_action = true; $this->button_export = false; $this->button_import = false; $this->button_add = false; $this->button_edit = false; $this->button_delete = true; $this->col = array(); $this->col[] = array("label"=>"Time Access","name"=>"created_at"); $this->col[] = array("label"=>"IP Address","name"=>"ipaddress"); $this->col[] = array("label"=>"User","name"=>"id_cms_users","join"=>config('crudbooster.USER_TABLE').",name"); $this->col[] = array("label"=>"Description","name"=>"description"); $this->form = array(); $this->form[] = array("label"=>"Time Access","name"=>"created_at","readonly"=>true); $this->form[] = array("label"=>"IP Address","name"=>"ipaddress","readonly"=>true); $this->form[] = array("label"=>"User Agent","name"=>"useragent","readonly"=>true); $this->form[] = array("label"=>"URL","name"=>"url","readonly"=>true); $this->form[] = array("label"=>"User","name"=>"id_cms_users","type"=>"select","datatable"=>config('crudbooster.USER_TABLE').",name","readonly"=>true); $this->form[] = array("label"=>"Description","name"=>"description","readonly"=>true); $this->form[] = array("label"=>"Details","name"=>"details","type"=>"custom"); } public static function displayDiff($old_values, $new_values) { $diff = self::getDiff($old_values, $new_values); $table = '
Key | Old Value | New Value |
---|---|---|
$key | $old_values[$key] | $new_values[$key] |