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

Class: Testing_DocTest_Registry

Source Location: /Testing_DocTest-0.6.0/Testing/DocTest/Registry.php

Class Overview


A simple Registry that will allow Doctest components to share options and instances in order to achieve loose coupling.


Author(s):

Version:

  • Release: 0.6.0

Copyright:

  • 2008 David JEAN LOUIS

Methods


Inherited Variables

Inherited Methods


Class Details

[line 52]
A simple Registry that will allow Doctest components to share options and instances in order to achieve loose coupling.

  1.  Testing_DocTest_Registry::singleton()->somevar = 'foo';
  2.  echo Testing_DocTest_Registry::singleton()->somevar . "\n";
  3.  unset(Testing_DocTest_Registry::singleton()->somevar);
  4.  echo Testing_DocTest_Registry::singleton()->somevar;
  5.  
  6.  // expects:
  7.  // bool(true)
  8.  // foo
  9.  //



[ Top ]


Method Detail

__construct (Constructor)   [line 81]

void __construct( )

Constructor, can not be called outside this class.
  • Access: protected

[ Top ]

singleton   [line 94]

object an singleton( )

Singleton constructor.
  • Return: instance of Testing_DocTest_Registry
  • Access: public

[ Top ]

__get   [line 130]

mixed __get( string $name)

Overloaded getter.
  • Access: public

Parameters:

string   $name     name of property

[ Top ]

__isset   [line 150]

boolean __isset( string $name)

Overloaded for isset() function.
  • Access: public

Parameters:

string   $name     name of property

[ Top ]

__set   [line 114]

void __set( string $name, mixed $value)

Overloaded setter.
  • Access: public

Parameters:

string   $name     name of property
mixed   $value     value of property

[ Top ]

__unset   [line 166]

void __unset( string $name)

Overloaded for unset() function.
  • Access: public

Parameters:

string   $name     name of property

[ Top ]


Documentation generated on Thu, 17 Jan 2013 10:30:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.