ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-spanish
php-spanish
[PHP-ES] Problema con referencia a Objetos...
by Isidro Casanovas Santos other posts by this author
Jan 31 2003 1:19PM messages near this date
Re: [PHP-ES] Hola Mundo! | [PHP-ES] O.T. hosting trabaje ahora pague después
Saludos...

He estado buscando pero no ecuentré la manera de hacer la siguiente 
referencia:

Ejemplo con el siguiente código:

class ca { 
	var B=new cb; 
	...
	function obtenerB() { return $this-> B; }
	}

class cb { 
	var cosa="";
	...
	function obtenerC() { return $this-> C; }
	}

vA=new ca();
vB=A-> obtenerB(); // con esta referencia no puedo modificar vA->B->cosa;

Quisiera saber la manera de poder hacer la referencia para que desde vB poder 
modificar vA-> B;

Nose si me expliqué muy bien, pero bueno, ... Gracias por las respuestas...

Hasta luego...

---------------------------------------------------------------------
Archivo On-line:  http://www.phpes.com/
	via news: news://news.phpes.com/
Manual PHP en español: http://www.php.net/manual/es/
Para dar de baja la suscripción, mande un mensaje a:
   lista-unsubscribe@phpes.com

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved