Hoa central
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Hoa\Log\Backtrace\Node Class Reference
Inheritance diagram for Hoa\Log\Backtrace\Node:

Public Member Functions

 __construct (Array $trace=array())
 
 setValue (Array $value=array())
 
 getId ()
 
 getFunction ()
 
 getLine ()
 
 getFilename ()
 
 getClassname ()
 
 getObject ()
 
 getType ()
 
 getArguments ()
 
 __toString ()
 

Protected Member Functions

 setId ($id)
 

Protected Attributes

 $_id = null
 
 $_value = null
 

Detailed Description

Class .

Node for the backtrace tree.

Author
Ivan Enderlin ivan..nosp@m.ende.nosp@m.rlin@.nosp@m.hoa-.nosp@m.proje.nosp@m.ct.n.nosp@m.et

Definition at line 60 of file Node.php.

Constructor & Destructor Documentation

Hoa\Log\Backtrace\Node::__construct ( Array  $trace = array())

Build a node.

public

Parameters
array$traceThe trace.
Returns
void

Definition at line 85 of file Node.php.

85  {
86 
87  $this->setId(md5(serialize($trace)));
88  $this->setValue($trace);
89  }
setValue(Array $value=array())
Definition: Node.php:113

Here is the call graph for this function:

Member Function Documentation

Hoa\Log\Backtrace\Node::__toString ( )

Get the node string representation.

public

Returns
string

Implements Hoa\Tree\ITree\Node.

Definition at line 215 of file Node.php.

215  {
216 
217  return $this->getClassname() .
218  $this->getType() .
219  $this->getFunction();
220  }

Here is the call graph for this function:

Hoa\Log\Backtrace\Node::getArguments ( )

Get the function or method arguments in the trace.

public

Returns
mixed

Definition at line 204 of file Node.php.

204  {
205 
206  return @$this->_value['args'];
207  }
Hoa\Log\Backtrace\Node::getClassname ( )

Get the classname in the trace.

public

Returns
mixed

Definition at line 171 of file Node.php.

171  {
172 
173  return @$this->_value['class'];
174  }

Here is the caller graph for this function:

Hoa\Log\Backtrace\Node::getFilename ( )

Get the filename in the trace.

public

Returns
mixed

Definition at line 160 of file Node.php.

160  {
161 
162  return @$this->_value['file'];
163  }
Hoa\Log\Backtrace\Node::getFunction ( )

Get the function name in the trace.

public

Returns
mixed

Definition at line 138 of file Node.php.

138  {
139 
140  return @$this->_value['function'];
141  }

Here is the caller graph for this function:

Hoa\Log\Backtrace\Node::getId ( )

Get node ID, must be implement because of interface.

public

Returns
string

Implements Hoa\Tree\ITree\Node.

Definition at line 127 of file Node.php.

127  {
128 
129  return $this->_id;
130  }
Hoa\Log\Backtrace\Node::getLine ( )

Get the line number in the trace.

public

Returns
mixed

Definition at line 149 of file Node.php.

149  {
150 
151  return @$this->_value['line'];
152  }
Hoa\Log\Backtrace\Node::getObject ( )

Get the object in the trace.

public

Returns
mixed

Definition at line 182 of file Node.php.

182  {
183 
184  return @$this->_value['object'];
185  }
Hoa\Log\Backtrace\Node::getType ( )

Get the type in the trace.

public

Returns
mixed

Definition at line 193 of file Node.php.

193  {
194 
195  return @$this->_value['type'];
196  }

Here is the caller graph for this function:

Hoa\Log\Backtrace\Node::setId (   $id)
protected

Set node ID.

protected

Parameters
string$idThe node ID.
Returns
string

Definition at line 98 of file Node.php.

98  {
99 
100  $old = $this->_id;
101  $this->_id = $id;
102 
103  return $old;
104  }

Here is the caller graph for this function:

Hoa\Log\Backtrace\Node::setValue ( Array  $value = array())

Set node value.

public

Parameters
array$valueThe node value.
Returns
string

Definition at line 113 of file Node.php.

113  {
114 
115  $old = $this->_value;
116  $this->_value = $value;
117 
118  return $old;
119  }

Here is the caller graph for this function:

Member Data Documentation

Hoa\Log\Backtrace\Node::$_id = null
protected

Definition at line 67 of file Node.php.

Hoa\Log\Backtrace\Node::$_value = null
protected

Definition at line 74 of file Node.php.


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