for my computer asset managment tool I've defined some container classes used transporting data from one class to another. For example there is a class host.
host.php look a little bit like the following:
Code: Select all
class host {
getHostname() {
return $this->hostname;
}
}Code: Select all
function createHostTable ($hostsї]) {
$elements = count ($hostsї]);
for ($i = 0 ; $i < $elements) {
echo $hostsї$i]->getHostname;
echo $hostsї$i]->getAlias;
}
}Thanks in advance
Andy