2006-07-24 01:08:06 +04:00
|
|
|
<?php
|
2006-08-22 02:51:27 +04:00
|
|
|
$table = $conn->getTable("User");
|
2006-07-24 01:08:06 +04:00
|
|
|
|
|
|
|
$users = $table->findAll();
|
|
|
|
|
|
|
|
// accessing elements with ArrayAccess interface
|
|
|
|
|
|
|
|
$users[0]->name = "Jack Daniels";
|
|
|
|
|
|
|
|
$users[1]->name = "John Locke";
|
|
|
|
|
|
|
|
// accessing elements with get()
|
|
|
|
|
|
|
|
print $users->get(1)->name;
|
|
|
|
?>
|