Tool/Project/Profile/FileParser/Xml.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework

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

Package: Zend\Tool
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

>VPropertyprotected\Zend_Tool_Project_Context_Repository $_contextRepository = null
Default valuenullDetails
Type
\Zend_Tool_Project_Context_Repository
>VPropertyprotected\Zend_Tool_Project_Profile $_profile = null
Default valuenullDetails
Type
\Zend_Tool_Project_Profile

Methods

methodpublic__construct() : void

__construct()

methodprotected_lazyLoadContexts() : void

_lazyLoadContexts()

This method will call initializeContext on the resources in a profile

Details
Todo
determine if this method belongs inside the profile  
methodprotected_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

Parameters
NameTypeDescription
$resourcesarray
$xmlNode\SimpleXmlElement
methodprotected_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

Parameters
NameTypeDescription
$xmlIterator\SimpleXMLIterator
$resource\Zend_Tool_Project_Profile_Resource
methodpublicserialize(\Zend_Tool_Project_Profile $profile) : string

serialize()

create an xml string from the provided profile

Parameters
NameTypeDescription
$profile\Zend_Tool_Project_Profile
Returns
TypeDescription
string
methodpublicunserialize(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

Parameters
NameTypeDescription
$datastring

xml data

$profile\Zend_Tool_Project_Profile

The profile to use as the top node

Returns
TypeDescription
\Zend_Tool_Project_Profile
Documentation was generated by phpDocumentor 2.0.0a12.