文件操作 - Base.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/ionos-assistant/vendor/ionos/blueprint/src/Model/Base.php
编辑文件内容
<?php /** * Provides the base class for all AS-elements. * * @package Blueprint */ namespace Ionos\Blueprint\Model; /** * Base class. Inherited by any AS2-object. */ class Base implements \JsonSerializable { /** * The classname of the object. Used as type. * * @var string */ protected $type; /** * Set classname as type. Base class is heavily inherited. */ public function __construct() { $reflect = new \ReflectionClass( $this ); $this->type = $reflect->getShortName(); } /** * Serializes protected and private properties as well * * @return mixed */ public function jsonSerialize(): mixed { $vars = get_object_vars( $this ); if ( in_array( 'AT_SIGNcontext', array_keys( $vars ), true ) ) { $vars = array( '@context' => $vars['AT_SIGNcontext'] ) + $vars; unset( $vars['AT_SIGNcontext'] ); } return $vars; } /** * Grant access to protected and private properties * * @param mixed $var The property to get. * @return mixed */ public function __get( $var ) { return $this->$var; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件