PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.5
Elementor Website Builder – more than just a page builder v4.1.5
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 / file.php

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

40 lines 1003 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 File extends Base {
9
10 const FORMAT = 'date [type X times][file:line] message [meta]';
11
12 protected $file;
13 protected $line;
14
15 public function __construct( $args ) {
16 parent::__construct( $args );
17
18 $this->file = empty( $args['file'] ) ? '' : $args['file'];
19 $this->line = empty( $args['line'] ) ? '' : $args['line'];
20 }
21
22 #[\ReturnTypeWillChange]
23 public function jsonSerialize() {
24 $json_arr = parent::jsonSerialize();
25 $json_arr['file'] = $this->file;
26 $json_arr['line'] = $this->line;
27 return $json_arr;
28 }
29
30 public function deserialize( $properties ) {
31 parent::deserialize( $properties );
32 $this->file = ! empty( $properties['file'] ) && is_string( $properties['file'] ) ? $properties['file'] : '';
33 $this->line = ! empty( $properties['line'] ) && is_string( $properties['line'] ) ? $properties['line'] : '';
34 }
35
36 public function get_name() {
37 return 'File';
38 }
39 }
40