文件操作 - class-value.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/i2kairpad/public_html/wp-content/plugins/wp-smushit/core/parser/class-value.php
编辑文件内容
<?php namespace Smush\Core\Parser; class Value { private $previous_value; private $value; private $has_updates = false; public function __construct( $value ) { $this->previous_value = ''; $this->value = $value; } /** * @param $value * * @return bool */ public function set( $value ) { if ( $value === $this->value ) { /** * Don't do anything if the value hasn't changed. * We don't want to do unnecessary string replacements. */ return false; } $this->previous_value = $this->value; $this->value = $value; $this->has_updates = true; return true; } public function get() { return $this->value; } public function get_previous() { return $this->previous_value; } public function has_updates() { return $this->has_updates; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件