Re: Classes

From: Date: Fri, 25 Jul 2003 09:57:59 +0000
Subject: Re: Classes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-156817@lists.php.net to get a copy of this message
do you get an error-message? which? maybe you use var $id = array(); instead of var $id[]; ciao SVEN Patrik Fomin wrote: > I need to create a class that looks like this: > > class Artikel { > var $id[]; > var $rubrik[]; > var $ingress[]; > var $kategori[]; > var $frontbildtyp[]; > var $frontbild[]; > var $kategoribild[]; > var $aktuell; > > function SetId($id) { > $this->id[$this->aktuell] = $id; > } > > function SetRubrik($id) { > $this->id[$this->aktuell] = $id; > } > > function SetIngress($id) { > $this->id[$this->aktuell] = $id; > } > > function SetKategori($id) { > $this->id[$this->aktuell] = $id; > } > > function SetKategoriBild($id) { > $this->id[$this->aktuell] = $id; > } > > function SetFrontbildtyp($id) { > $this->id[$this->aktuell] = $id; > } > > function SetFrontbild($id) { > $this->id[$this->aktuell] = $id; > } > > function SetNextPost() { > $this->aktuell++; > } > > function SetStartPost() { > $this->aktuell = 0; > } > > } > > > the problem is that php wont let me :/, any ideas? > > regards > patrick

« previous php.general (#156817) next »