uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
www
/
wp-content
/
plugins
/
wp-smushit
/
core
/
lcp
/
class-lcp-data-store-serializer.php
/
/
<?php namespace Smush\Core\LCP; use Smush\Core\Array_Utils; class LCP_Data_Store_Serializer { /** * @var Array_Utils */ private $array_utils; public function __construct() { $this->array_utils = new Array_Utils(); } public function serialize( $object ) { $data = $object->to_array(); if ( $object instanceof LCP_Data_Store_Post_Meta ) { return array( 'type' => 'post-meta', 'data' => $data, ); } else { return array( 'type' => 'option', 'data' => $data, ); } } public function deserialize( $serialized ) { $type = $this->array_utils->get_array_value( $serialized, 'type' ); $data = $this->array_utils->get_array_value( $serialized, 'data' ); if ( is_null( $type ) || is_null( $data ) ) { return null; } switch ( $type ) { case 'post-meta': $object = new LCP_Data_Store_Post_Meta(); break; case 'option': default: $object = new LCP_Data_Store_Option(); } $object->from_array( $data ); return $object; } }
/home/batcwwjx/www/wp-content/plugins/wp-smushit/core/lcp/class-lcp-data-store-serializer.php