Tests
[ class tree: Tests ] [ index: Tests ] [ all elements ]

Class: SerializableTestClass1

Source Location: /tests/common/SerializableTest.php

Class Overview

CwSerializable
   |
   --SerializableTestClass1

Test class used to test abstract class CwSerializable (all types of attribute)


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: CwSerializable

CwSerializable::__construct()
Constructor
CwSerializable::copyAllVars()
Copy all properties from one object to another (overwriting previous ones)
CwSerializable::getValue()
Returns structure's property value if property exists
CwSerializable::guessClassName()
Tries to guess the class to use from the property being unserialised.
CwSerializable::unserialize()
Unserializes from a stdClass structure
CwSerializable::unserializeArray()
Returns an array of typed values
CwSerializable::unserializeObject()
Returns an unserialized object from a stdClass structure
CwSerializable::unserializeObjectMap()
Returns an array of unserialized objects from a stdClass structure
CwSerializable::unserializeStringArray()
Returns an array of typed values from a string
CwSerializable::unserializeValue()
Returns a typed value from a structure property

Class Details

[line 248]
Test class used to test abstract class CwSerializable (all types of attribute)



Tags:

author:  Yves Bolognini <yves.bolognini@camptocamp.com>


[ Top ]


Class Variables

$boolArray =

[line 268]



Tags:

access:  public

Type:   array


[ Top ]

$intArray =

[line 263]



Tags:

access:  public

Type:   array


[ Top ]

$obj =

[line 273]



Tags:

access:  public

Type:   Object


[ Top ]

$objMap =

[line 278]



Tags:

access:  public

Type:   array


[ Top ]

$str =

[line 253]



Tags:

access:  public

Type:   string


[ Top ]

$strArray =

[line 258]



Tags:

access:  public

Type:   array


[ Top ]



Class Methods


constructor __construct [line 284]

SerializableTestClass1 __construct( [string $my_str = ''])

Constructor



Overrides CwSerializable::__construct() (Constructor)

Parameters:

string   $my_str  

[ Top ]

method unserialize [line 292]

void unserialize( mixed $struct)



Tags:

access:  public
see:  CwSerializable::unserialize()


Overrides CwSerializable::unserialize() (Unserializes from a stdClass structure)

[ Top ]


Documentation generated on Fri, 11 Nov 2005 11:00:12 +0000 by phpDocumentor 1.3.0RC3