php-general Digest 8 Dec 2007 16:49:29 -0000 Issue 5170
Topics (messages 265578 through 265582):
Re: nested objects
265578 by: Jochem Maas
265579 by: Victor Matherly
build a multi chat server with php
265580 by: abderrazzak nejeoui
265581 by: Børge Holen
265582 by: Nathan Rixham
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Victor Matherly wrote:
>
> Hello list,
>
> I want to create a new object and nest the objects variable in an array of
> another object.
> I think I am going about it the correct way
I think you are trying to swat a fly with a nuclear missle. in practice
abstracting an HTML
table into a big collection of objects is total overkill (although it might
make an interesting
accademic introduction into OO coding)
...
>
> class htmlTableCell {
> var $cell_width;
> var $cell_height;
> var $cell_colspan;
> var $cell_rowspan;
> var $css_class;
> var $cell_content;
> var $cell_name;
>
>
> function __construct($content = " "){
>
> $this->cell_content = $content;
>
>
> }// end construct
>
> function setContent($content){
> $this->cell_content = $content;
>
> }//end setContent function
>
> function setName($name){
> $this->cell_name = $name;
>
> }//end setContent function
>
>
> function getContent(){
> return $this->cell_content;
>
> }//end setContent function
>
> } //end TableCell class
>
>
>
>
>
>
> ?>
>
>
>
>
>
>
> Victor J. Matherly
> Technical Services
> Wave Communications, Inc
> http://www.wave-communications.com
>
--- End Message ---
--- Begin Message ---
Actually it is academic intro to OO programing, the overkill html was just
helping me understand the concept. Now I can put it to good use :-).
----- Original Message -----
From: "Jochem Maas" <[EMAIL PROTECTED]>
To: "Victor Matherly" <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Sent: Friday, December 7, 2007 10:20:47 PM (GMT-0500) America/New_York
Subject: Re: [PHP] nested objects
Victor Matherly wrote:
>
> Hello list,
>
> I want to create a new object and nest the objects variable in an array of
> another object.
> I think I am going about it the correct way
I think you are trying to swat a fly with a nuclear missle. in practice
abstracting an HTML
table into a big collection of objects is total overkill (although it might
make an interesting
accademic introduction into OO coding)
...
>
> class htmlTableCell {
> var $cell_width;
> var $cell_height;
> var $cell_colspan;
> var $cell_rowspan;
> var $css_class;
> var $cell_content;
> var $cell_name;
>
>
> function __construct($content = " "){
>
> $this->cell_content = $content;
>
>
> }// end construct
>
> function setContent($content){
> $this->cell_content = $content;
>
> }//end setContent function
>
> function setName($name){
> $this->cell_name = $name;
>
> }//end setContent function
>
>
> function getContent(){
> return $this->cell_content;
>
> }//end setContent function
>
> } //end TableCell class
>
>
>
>
>
>
> ?>
>
>
>
>
>
>
> Victor J. Matherly
> Technical Services
> Wave Communications, Inc
> http://www.wave-communications.com
>
--- End Message ---
--- Begin Message ---
Hello,
i want build a multi chat server based in php.
1- is that possible
2- if yes can you instruct me how to bigin
thanks
--- End Message ---
--- Begin Message ---
On Saturday 08 December 2007 09:59:35 abderrazzak nejeoui wrote:
> Hello,
> i want build a multi chat server based in php.
> 1- is that possible
> 2- if yes can you instruct me how to bigin
> thanks
chat as in :
forum
livchat throught a page
livechat throught an external program,
--
---
Børge Holen
http://www.arivene.net
--- End Message ---
--- Begin Message ---
1 - yes you can make a multichat daemon in php
2 - if you don't know that it's possible or where to begin, then odds
are you won't be able to make it.
Nathan
abderrazzak nejeoui wrote:
Hello,
i want build a multi chat server based in php.
1- is that possible
2- if yes can you instruct me how to bigin
thanks
--- End Message ---