文件操作 - Singleton.php
返回文件管理
返回主菜单
删除本文件
文件: /root/Desktop/OLD/plugin-wordpress/advanced-cron-manager/vendor/underdev/utils/src/Singleton.php
编辑文件内容
<?php /** * Singleton class */ namespace underDEV\Utils; class Singleton { protected static $instances = array(); protected function __construct() {} protected function __clone() {} public function __wakeup() { throw new Exception( 'Cannot unserialize singleton' ); } public static function get() { $class = get_called_class(); if ( ! isset( self::$instances[ $class ] ) ) { self::$instances[ $class ] = new static; } return self::$instances[ $class ]; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件