1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php class AccountCollection extends TList { public function addRange($accounts) { foreach($accounts as $account) $this->add($account); } public function copyTo(TList $array) { $array->copyFrom($this); } } ?>