<?php
//!---------------------------------
// @class Teste
// @desc Descrição da classe
// em múltiplas linhas
// @package packageName
// @version $ Revision 1.2 $
// @extends Object
// @uses AbstractNode
// @uses AbstractList
// @author Marcos Pont
//!---------------------------------
class Teste extends Object
{
// @var teste int Teste
var $teste = 1;
//!-------------------------------
// @function Teste::Teste
// @desc Construtor da classe
// @access public
// @param p (int) "TRUE" Pê
//!-------------------------------
function Teste($p=TRUE) {
}
//!-------------------------------
// @function Teste::&getInstance
// @desc Retorna uma instancia unica da classe Teste
// @access public
// @return Teste object Objeto Teste
// @static
//!-------------------------------
function &getInstance() {
}
//!-------------------------------
// @function Teste::prepareYourself
// @desc adlkfjalsdfldksfadsf
// @access public
// @param &name string Retorna o nome
// @param setting bool "TRUE" Setting
// @return string Nome
// @since 1.4
// @version 0.0.12
// @author Marcos Pont
//!-------------------------------
function prepareYourself(&$name, $setting=TRUE) {
}
//!-------------------------------
// @function Teste::build
// @desc Constroi
// @access public
// @return voidd
//!-------------------------------
function build() {
}
}
//!----------------------------------------
// @function &getObjectSingleton
// @desc Retorna instancia unica de um
// objeto, a partir de seu nome
// @param objName (String) Nome do objeto
// @return object Objeto
//!----------------------------------------
function &getObjectSingleton($objName) {
static $objects;
if (!isset($objects[$objName])) {
$objects[$objName] = new $objName();
}
return $objects[$objName];
}
?>