TITAN Library for PHP5  5.6.0
Web Software Development Kit for PHP5
stack Class Reference

Titan Data Stack Class. More...

Public Member Functions

 __construct ($nestingtags=array())
 
 __get ($var)
 
 stack ($tag)
 
 unstack ()
 
 instack ($tag, $nested=false)
 
 size ()
 
 topofstack ()
 

Protected Attributes

 $stack
 the actual nested stack
 
 $level = 0
 nesting/recursion level
 
 $nestingtags
 tags that force "nesting" (recursion)
 

Detailed Description

Titan Data Stack Class.

Class: \tl\data\stack

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.6.0

Constructor & Destructor Documentation

__construct (   $nestingtags = array())

Constructor

Parameters
array$nestingtagsArray of tags that cause the stack to nest

Member Function Documentation

__get (   $var)

Returns the values of read-only properties

Parameters
string$varVariable name to get ('level', 'stack')
stack (   $tag)

Add a tag to the stack

Parameters
string$tagThe tag to add to the stack
unstack ( )

Remove (and destroy) the last element from the stack

instack (   $tag,
  $nested = false 
)

Check to see if the tag in the stack

Parameters
string$tagThe tag to look for
bool$nested(optional) Should I look into all of the nesting levels? (default = false) Only look in the current nesting level
Returns
bool Was the tag found?
size ( )

Return the size of the stack's currentnesting level

topofstack ( )

Return the top of the stack (without removing it)


The documentation for this class was generated from the following file: