文件操作 - Collection.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/ionos-assistant/vendor/ionos/blueprint/src/Model/Collection.php
编辑文件内容
<?php /** * Provides the AS-element Collection. * * @package Blueprint */ namespace Ionos\Blueprint\Model; /** * AS-Type Collection */ class Collection extends Base { protected $type; protected $content; protected $totalItems = 0; //phpcs:ignore WordPress.NamingConventions protected $items = array(); /** * Construct AS-2-Object * * @param string $content Content-field. */ public function __construct( $content ) { parent::__construct(); $this->content = $content; } /** * Add items * * @param mixed $item Item in collection. * @return void */ public function add_item( $item ) { if ( empty( $item ) ) { return; } $this->items[] = $item; $this->totalItems++; //phpcs:ignore WordPress.NamingConventions } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件