PluginProbe
Disk Usage Insights / trunk
Disk Usage Insights vtrunk
trunk 1.0 1.10 1.11 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9
disk-usage-insights / src / Domain / FileEntry.php

FileEntry.php in Disk Usage Insights trunk, at src/Domain/FileEntry.php

23 lines 991 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Mgleis\DiskUsageInsights\Domain;
4
5 class FileEntry {
6
7 const TYPE_DIR = 'dir';
8 const TYPE_FILE = 'file';
9
10 public int $id = 0;
11 public int $parent_id = 0; // 0=no parent
12 public string $name = ''; // dir=full path, file = relative name
13 public string $type = 'file'; // dir|file
14 public int $size = 0; // dir=0, file=file size
15 public int $dir_size = 0; // only for dirs: size of all files in this directory
16 public int $dir_recursive_size = 0; // only for dirs: size of all files in this and all sub directories
17 public int $dir_count = 0; // only for dirs: number of files in this director
18 public int $dir_recursive_count = 0; // only for dirs: number of files in this and all sub directories
19 public int $last_modified_date = 0;
20 public int $is_wp_core_file = 0; // 1=the file is a file belonging to the base wordpress installation
21
22 }
23