|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/relaunch-kmu/wp-content/plugins/wp-gdpr-compliance/Objects/ |
Upload File : |
<?php
namespace WPGDPRC\Objects;
/**
* Class AbstractRequest
* @package WPGDPRC\Objects
*/
abstract class AbstractRequest extends AbstractObject {
/**
* Lists the data for saving to the database
* @param bool $new
* @return array
*/
public function getData( bool $new = false ): array {
$list = [];
if ( ! $new ) {
return $list;
}
$list[ static::KEY_SITE_ID ] = $this->getSiteId();
$list[ static::KEY_CREATED ] = date_i18n( 'Y-m-d H:i:s' );
return $list;
}
}