Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

ezsitedata.php
Go to the documentation of this file.
1 <?php
17 class eZSiteData extends eZPersistentObject
18 {
24 public static function definition()
25 {
26 return array( 'fields' => array( 'name' => array( 'name' => 'name',
27 'datatype' => 'string',
28 'default' => null,
29 'required' => true ),
30
31 'value' => array( 'name' => 'value',
32 'datatype' => 'string',
33 'default' => null,
34 'required' => true ),
35
36 ),
37
38 'keys' => array( 'name' ),
39 'class_name' => 'eZSiteData',
40 'name' => 'ezsite_data',
41 'function_attributes' => array()
42 );
43 }
44
53 public static function create( $name, $value )
54 {
55 return new eZSiteData( array(
56 'name' => $name,
57 'value' => $value
58 ) );
59 }
60
67 public static function fetchByName( $name )
68 {
69 $result = parent::fetchObject( self::definition(), null, array( 'name' => $name ) );
70 return $result;
71 }
72
73 }
74
75 ?>
eZPersistentObject
Definition: ezpersistentobject.php:33
eZSiteData
Definition: ezsitedata.php:18
eZSiteData\definition
static definition()
Definition: ezsitedata.php:24
eZSiteData\fetchByName
static fetchByName( $name)
Definition: ezsitedata.php:67
eZSiteData\create
static create( $name, $value)
Definition: ezsitedata.php:53
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.