Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

object.php
Go to the documentation of this file.
1 <?php
16 class ezpRestCacheStorageClusterObject extends ezpRestCacheStorageCluster
17 {
29 protected function fetchData( $filename )
30 {
31 return ( include $filename );
32 }
33
50 protected function prepareData( $data )
51 {
52 if ( ( is_object( $data ) && !( $data instanceof ezcBaseExportable ) )
53 || is_resource( $data ) )
54 {
55 throw new ezcCacheInvalidDataException( gettype( $data ), array( 'scalar', 'array', 'ezcBaseExportable' ) );
56 }
57 return "<?php\nreturn " . var_export( $data, true ) . ";\n?>\n";
58 }
59 }
60 ?>
ezpRestCacheStorageCluster
Definition: cluster.php:12
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.