Lines Matching refs:storage
16 $storage = new SplObjectStorage();
17 $storage[$a] = 1;
18 $storage[$b] = 2;
19 $storage[$c] = 3;
20 $storage[$d] = 4;
21 $storage[$e] = 5;
26 $storage->seek(-1);
31 $storage->seek(5);
36 var_dump($storage->key());
37 var_dump($storage->current());
41 $storage->seek(2);
42 var_dump($storage->key());
43 var_dump($storage->current());
45 $storage->seek(1);
46 var_dump($storage->key());
47 var_dump($storage->current());
49 $storage->seek(4);
50 var_dump($storage->key());
51 var_dump($storage->current());
53 $storage->seek(0);
54 var_dump($storage->key());
55 var_dump($storage->current());
57 $storage->seek(3);
58 var_dump($storage->key());
59 var_dump($storage->current());
61 $storage->seek(3);
62 var_dump($storage->key());
63 var_dump($storage->current());
67 $storage->detach($b);
68 $storage->detach($d);
71 $storage->seek($index);
72 var_dump($storage->key());
73 var_dump($storage->current());
77 $storage->seek(3);