|
|
Nombre de visites : 26 Mise en ligne : 05/2008 Dernière modif : 06/2008 Data structuresInventory Storage Complete list of fields Links Inheritance hierarchies Some details ’Zendlike’ data structure
To generate documentation, phpSimpleDoc first computes data structures expressing the documentable objects. This corresponds to the "model" part of the program.
It is called 'default' data structure because as phpSimpleDocs permits several documentor implementations, different implementations can rely on an different data structures. This data structure is used by the 'default' documentor implementation ; 'zendlike' and 'php' data structures are very close to the default one. InventoryThere are several ways to organize documentable objects (noted DOs) ; here is the description used in phpSimpleDoc.It helped to identify the code elements, their characteristics and the relations between them, but is not used as a class hierarchy in the code.
Notes : - Current implementation of the data structure is partial. StorageDocumentable objects are stored as PHP arrays in Documentor's public property$data.
These arrays can be classified in three categories :
$docu->data : $docu->data['classes'] etc.
Complete list of fieldsHere are the fields of arrays of type 1, as currently implemented :classes name
index
fileIndex
packageIndex
type
startLine
endLine
relativePath
absolutePath
prefix
declaringInstruction
modifiers
extends
implements
isAbstract
isInterface
isFinal
isException
methods
fields
constants
commentLine
commentObject
classMethods name
index
classIndex
fileIndex
startLine
endLine
declaringInstruction
modifiers
visibility
isStatic
isAbstract
isFinal
overrides
overridenBy
specifies
specifiedBy
parameters
commentLine
commentObject
classFields name
index
classIndex
fileIndex
startLine
endLine
declaringInstruction
defaultValue
modifiers
visibility
isStatic
overrides
overridenBy
commentLine
commentObject
classConstants name
index
fileIndex
classIndex
value
startLine
endLine
declaringInstruction
commentLine
commentObject
functions name
index
fileIndex
packageIndex
startLine
endLine
declaringInstruction
parameters
commentLine
commentObject
constants name
index
fileIndex
packageIndex
value
startLine
declaringInstruction
commentLine
commentObject
packages name
index
fullName
absolutePath
relativePath
commentObject
files name
index
packageIndex
absolutePath
relativePath
classes
interfaces
functions
constants
dirs LinksLinks between the entities are expressed using the indexes of objects in arrays.
Inheritance hierarchiesTo express inheritance hierarchy,$docu->data['hierarchies'] is computed.
It contains : - $docu->data['hierarchies']['class']
- $docu->data['hierarchies']['interface']
- $docu->data['hierarchies']['exception']
A dump of an element of these arrays look like that :
Array(
[Class1] => Array(
[parent] => DateTimeZone
[children] => Array(
[0] => Class2
[1] => Class3
[2] => Class5
)
)
)
Some details
Contains 2 sub-arrays, for static and instance methods ;
|