Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Tool_Project_Profile_FileParser_Xml Class Reference

Public Member Functions

 __construct ()
 __construct()
 
 serialize (Zend_Tool_Project_Profile $profile)
 serialize()
 
 unserialize ($data, Zend_Tool_Project_Profile $profile)
 unserialize()
 

Protected Member Functions

 _serializeRecurser ($resources, SimpleXmlElement $xmlNode)
 _serializeRecurser()
 
 _unserializeRecurser (SimpleXMLIterator $xmlIterator, Zend_Tool_Project_Profile_Resource $resource=null)
 _unserializeRecurser()
 
 _lazyLoadContexts ()
 _lazyLoadContexts()
 

Protected Attributes

 $_profile = null
 
 $_contextRepository = null
 

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

_lazyLoadContexts ( )
protected

_lazyLoadContexts()

This method will call initializeContext on the resources in a profile

Todo:
determine if this method belongs inside the profile
_serializeRecurser (   $resources,
SimpleXmlElement  $xmlNode 
)
protected

_serializeRecurser()

This method will be used to traverse the depths of the structure when *serializing* an xml structure into a string

Parameters
array$resources
SimpleXmlElement$xmlNode
_unserializeRecurser ( SimpleXMLIterator  $xmlIterator,
Zend_Tool_Project_Profile_Resource  $resource = null 
)
protected

_unserializeRecurser()

This method will be used to traverse the depths of the structure as needed to *unserialize* the profile from an xmlIterator

Parameters
SimpleXMLIterator$xmlIterator
Zend_Tool_Project_Profile_Resource$resource
serialize ( Zend_Tool_Project_Profile  $profile)

serialize()

create an xml string from the provided profile

Parameters
Zend_Tool_Project_Profile$profile
Returns
string

Implements Zend_Tool_Project_Profile_FileParser_Interface.

unserialize (   $data,
Zend_Tool_Project_Profile  $profile 
)

unserialize()

Create a structure in the object $profile from the structure specficied in the xml string provided

Parameters
stringxml data
Zend_Tool_Project_ProfileThe profile to use as the top node
Returns
Zend_Tool_Project_Profile

Implements Zend_Tool_Project_Profile_FileParser_Interface.

Member Data Documentation

$_contextRepository = null
protected
$_profile = null
protected