PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.4
Elementor Website Builder – more than just a page builder v3.0.4
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / core / logger / items / js.php

js.php in Elementor Website Builder – more than just a page builder 3.0.4, at core/logger/items/js.php

36 lines 836 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Core\Logger\Items;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit; // Exit if accessed directly
6 }
7
8 class JS extends File {
9
10 const FORMAT = 'JS: date [type X times][file:line:column] message [meta]';
11
12 protected $column;
13
14 public function __construct( $args ) {
15 parent::__construct( $args );
16 $this->column = $args['column'];
17 $this->file = $args['url'];
18 $this->date = gmdate( 'Y-m-d H:i:s', $args['timestamp'] );
19 }
20
21 public function jsonSerialize() {
22 $json_arr = parent::jsonSerialize();
23 $json_arr['column'] = $this->column;
24 return $json_arr;
25 }
26
27 public function deserialize( $properties ) {
28 parent::deserialize( $properties );
29 $this->column = ! empty( $properties['column'] ) && is_string( $properties['column'] ) ? $properties['column'] : '';
30 }
31
32 public function get_name() {
33 return 'JS';
34 }
35 }
36