You are here: Using Zend and Object property/functions follow-up « PHP Programming Language « IT news, forums, messages
Using Zend and Object property/functions follow-up

Posted by Neko on 06/21/06 15:01

Using Zend and Object property/functions follow-up:

With Zend, using PHP5, I am trying to acess property of an object that
is stored in a member variable.
I'm quite new in using PHP5 and class functions but I haven't seen
anything that could answer me. Would someone please tell me what I am
doing wrong or link me to somewhere I may find some help please

Neko


DEMO:

class A
{

private $m_oObjectC = NULL;

function __construct()
{
$this->m_oObjectC = new B();
}

private function test()
{
// I canot see the attribute listing at the second ->
as if it could not read property.
// I know that like that, there is no way it may know
what is the current object
// but this is what my question is about, how to 'CAST'

// or whatever it take to get the class information.
$var = $this->m_oObjectC->FctClassC();
}
}

class B
{

function __construct()
{
$oObjectC = new C();

// Some manipulations

return $oObjectC;
}

}

class C
{

function __construct()
{

}

function FctClassC()
{
// Some manipulations
}

}

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация