X7ROOT File Manager
Current Path:
/home/hamdjcne/public_html/wp-content/plugins/hub-core/libs/core-importer
home
/
hamdjcne
/
public_html
/
wp-content
/
plugins
/
hub-core
/
libs
/
core-importer
/
ðŸ“
..
📄
LiquidCore.php
(1.45 KB)
📄
LiquidDownload.php
(4.85 KB)
📄
LiquidImporter.php
(16.34 KB)
📄
LiquidLog.php
(3.3 KB)
📄
LiquidNotices.php
(2.25 KB)
📄
LiquidRedirect.php
(934 B)
📄
LiquidReset.php
(1.17 KB)
📄
LiquidThemeDemoImporter.php
(9.13 KB)
📄
class-msp-importer.php
(28.38 KB)
📄
parsers.php
(22.17 KB)
📄
wordpress-importer.php
(56.36 KB)
Editing: LiquidCore.php
<?php /** * Handle plugin contents * * This class handle pathing the core information to other classes like plugin path, plugin version, plugin url..etc * * @since 1.0 * * @package be * @subpackage be-functions */ Class LiquidCore implements ArrayAccess { protected $contents; function __construct() { $this->contents = array(); } #[\ReturnTypeWillChange] public function offsetSet( $offset, $value ) { $this->contents[$offset] = $value; } #[\ReturnTypeWillChange] public function offsetExists($offset):bool { return isset( $this->contents[$offset] ); } #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset( $this->contents[$offset] ); } #[\ReturnTypeWillChange] public function offsetGet($offset) { if( is_callable($this->contents[$offset]) ){ return call_user_func( $this->contents[$offset], $this ); } return isset( $this->contents[$offset] ) ? $this->contents[$offset] : null; } public function run(){ foreach( $this->contents as $key => $content ){ // Loop on contents if( is_callable($content) ){ $content = $this[$key]; } if( is_object( $content ) ){ $reflection = new ReflectionClass( $content ); if( $reflection->hasMethod( 'run' ) ){ $content->run(); // Call run method on object } } } } } ?>
Upload File
Create Folder