Tool/Project/Profile/FileParser/Xml.php
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Tool
- Subpackage
- Framework
- Version
- $Id: Xml.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Tool_Project_Profile_FileParser_Xml
- Implements
- \Zend_Tool_Project_Profile_FileParser_Interface
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods


_lazyLoadContexts() : void
_lazyLoadContexts()
This method will call initializeContext on the resources in a profile
- Todo
- determine if this method belongs inside the profile


_serializeRecurser(array $resources, \SimpleXmlElement $xmlNode) : void
_serializeRecurser()
This method will be used to traverse the depths of the structure when serializing an xml structure into a string
Name | Type | Description |
---|---|---|
$resources | array | |
$xmlNode | \SimpleXmlElement |


_unserializeRecurser(\SimpleXMLIterator $xmlIterator, \Zend_Tool_Project_Profile_Resource $resource = null) : void
_unserializeRecurser()
This method will be used to traverse the depths of the structure as needed to unserialize the profile from an xmlIterator
Name | Type | Description |
---|---|---|
$xmlIterator | \SimpleXMLIterator | |
$resource | \Zend_Tool_Project_Profile_Resource |


serialize(\Zend_Tool_Project_Profile $profile) : string
serialize()
create an xml string from the provided profile
Name | Type | Description |
---|---|---|
$profile | \Zend_Tool_Project_Profile |
Type | Description |
---|---|
string |


unserialize(string $data, \Zend_Tool_Project_Profile $profile) : \Zend_Tool_Project_Profile
unserialize()
Create a structure in the object $profile from the structure specficied in the xml string provided
Name | Type | Description |
---|---|---|
$data | string | xml data |
$profile | \Zend_Tool_Project_Profile | The profile to use as the top node |
Type | Description |
---|---|
\Zend_Tool_Project_Profile |