[PHP] OOP problems

2011-12-15 Thread Dominik Halvoník
Hello, I would like to ask you for help. This days I am trying to build one of my applications. But I have problem which stopped me. I have folder whit php files like connect.php, delete.php etc. These files contains classes named the same as files. So in file connect.php is class Connect. These

Re: [PHP] OOP problems

2011-12-15 Thread Alex Pojarsky
I'm not sure I've understood you correctly, but you may try something like the following primitive autoloader (I didn't debug it, it's just an example): class Base { protected $_path = ''; public function construct($base_path) { $this-_path = $base_path; } public

Re: [PHP] OOP problems

2011-12-15 Thread Fatih P.
On 12/15/2011 01:05 PM, Alex Pojarsky wrote: I'm not sure I've understood you correctly, but you may try something like the following primitive autoloader (I didn't debug it, it's just an example): class Base { protected $_path = ''; public function construct($base_path) {

Re: [PHP] OOP problems

2011-12-11 Thread Dominik Halvoník
Hi guys, I try to applied your solutions but I have problems whit it. I need to achieve this schema( - is something like ../ it means that it is one level up folder): connec.php(class Connect MySql)- select.php(class Select MySql) - -

[PHP] OOP problems

2011-12-08 Thread Dominik Halvoník
Hello, I would like to ask you for help. This days I am trying to build one of my applications. But I have problem which stopped me. I have folder whit php files like connect.php, delete.php etc. These files contains classes named the same as files. So in file connect.php is class Connect. These

Re: [PHP] OOP problems

2011-12-08 Thread Stuart Dallas
On 8 Dec 2011, at 17:14, Dominik Halvoník wrote: I would like to ask you for help. This days I am trying to build one of my applications. But I have problem which stopped me. I have folder whit php files like connect.php, delete.php etc. These files contains classes named the same as files.

Re: [PHP] OOP problems

2011-12-08 Thread Mokaddim Akm
Sent from a handheld device On 08-Dec-2011, at 11:14 PM, Dominik Halvoník dominik.halvo...@gmail.com wrote: Hello, I would like to ask you for help. This days I am trying to build one of my applications. But I have problem which stopped me. I have folder whit php files like connect.php,

[PHP] oop problems code

2003-09-18 Thread ORLANDO POZO
Hello, mailing list, I have problem with this oop code: ? class Person { var $name, $address, $age; function Person($name, $address, $age) { $this-name = $name; $this-address = $address; $this-age = $age; } } Class Employee extends Person { var $position, $salary; function

Re: [PHP] oop problems code

2003-09-18 Thread Leif K-Brooks
ORLANDO POZO wrote: Hello, mailing list, I have problem with this oop code: [snip bad code] -- the output of it is: [snip output]

[PHP] OOP Problems

2001-07-14 Thread Andrew Kirilenko
Hello! I have following problem: ? $container = new ccontainer(); $container-init(); $container-test1-foo(); $container-test2-foo(); $container-test2-owner-test1-foo(); $container-test1-owner-test2-foo(); class ccontainer { function ccontainer() { } function init() {

Re: [PHP] OOP Problems

2001-07-14 Thread teo
Hi Andrew! On Sat, 14 Jul 2001, Andrew Kirilenko wrote: Hello! I have following problem: ? $container = new ccontainer(); $container-init(); $container-test1-foo(); $container-test2-foo(); $container-test2-owner-test1-foo(); [*] $container-test1-owner-test2-foo(); class