文件操作 - Reflector_View.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Views/Reflector_View.php
编辑文件内容
<?php /** * A View that will reflect back the view context for debugging purposes. * * @since 4.9.3 * @package Tribe\Events\Views\V2\Views */ namespace Tribe\Events\Views\V2\Views; use Tribe\Events\Views\V2\View; /** * Class Reflector_View * * @since 4.9.3 * @package Tribe\Events\Views\V2\Views */ class Reflector_View extends View { /** * Slug for this view. * * @since 4.9.4 * @deprecated 6.0.7 * * @var string */ protected $slug = 'reflector'; /** * Statically accessible slug for this view. * * @since 6.0.7 * * @var string */ protected static $view_slug = 'reflector'; /** * Visibility for this view. * * @since 4.9.4 * @since 4.9.11 Made the property static. * * @var bool */ protected static $publicly_visible = false; /** * Overrides the base HTML method to return the JSON representation of the view context. * * @since 4.9.3 * * @return false|string The result of the `json_encode` called on the current view context. */ public function get_html() { $json = wp_json_encode( $this->context->to_array(), JSON_PRETTY_PRINT ); if ( false === $json ) { return false; } return sanitize_textarea_field( $json ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件