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

Class: PHP_UML_Metamodel_Sequence

Source Location: /PHP_UML-0.4.4/UML/Metamodel/PHP.php

Class Overview


A structure designed to store instances of PHP_UML metamodel's elements.


Methods


Inherited Variables

Inherited Methods


Class Details

[line 70]
A structure designed to store instances of PHP_UML metamodel's elements.

It is composed of a stack, an internal iterator ($_key), a search function and somes accessors. It only accepts PHP_UML_Metamodel_Metamodel_NamedElement objects.



[ Top ]


Method Detail

add   [line 80]

void add( PHP_UML_Metamodel_NamedElement &$element)

Adds a program element to the sequence
  • Access: public

Parameters:

PHP_UML_Metamodel_NamedElement   &$element   —  Program element

[ Top ]

current   [line 134]

PHP_UML_Metamodel_NamedElement &current( )

Returns a reference to the current element (head)
  • Access: public

[ Top ]

get   [line 96]

PHP_UML_Metamodel_NamedElement get( int $index)

Returns the object stored at the $index position
  • Access: public

Parameters:

int   $index   —  Index position

[ Top ]

getAll   [line 106]

array() getAll( )

Returns all the objects stored
  • Access: public

[ Top ]

getIterator   [line 154]

PHP_UML_Metamodel_SequenceIterator getIterator( )

Returns an iterator containing all the objects stored
  • Access: public

[ Top ]

key   [line 144]

int key( )

Returns the current index position
  • Access: public

[ Top ]

searchElement   [line 119]

mixed searchElement( mixed $value, [string $property = 'name'])

Searches for an object
  • Return: Either the index position, or FALSE
  • Access: public

Parameters:

mixed   $value   —  The asserted value
string   $property   —  The property to look into

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:22:53 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.