Uploaded Object not being updated

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
evillaveces
Forum Newbie
Posts: 1
Joined: Thu Oct 30, 2008 8:10 pm

Uploaded Object not being updated

Post by evillaveces »

I uploaded an object with new methods to my server and another class is not seing the methods. I get Call to undefined method Item::setAlbumName() Does php have a work directory that caches objects?
class Item {

private $UserItemKey;
private $UserId;
private $AlbumName;


public function setUserItemKey($value) {
$this->UserItemKey = $value;
}

public function getUserItemKey() {
return $this->UserItemKey;
}

public function setAlbumName($value) {
$this->AlbumName = $value;
}

public function getAlbumName() {
return $this->AlbumName;
}

public function setUserId($value) {
$this->UserId = $value;
}

public function getUserId($value) {
return $this->UserId;
}
}


$item = new Item();

$item->setUserItemKey($sqlItem['UserItemKey']);
$item->setUserId($sqlItem['UserId']);
$item->setAlbumName($sqlItem['Album']);
Post Reply