예제 #1
0
 function getHashMap()
 {
     $indexes = new HashMap();
     while ($item = $this->fetchArray()) {
         $indexes->add($item);
     }
     return $indexes;
 }
예제 #2
0
 public function drawAsAdapter(HashMap $map)
 {
     if ($map->size() < 1) {
         return false;
     }
     $cursor = new Cursor($map);
     if (!$cursor->moveToFirst()) {
         return false;
     }
     $result = new OutputWrapper();
     do {
         $result->put(self::TAG, $this->draw($cursor->getIndex()));
     } while ($cursor->moveToNext());
     return $result;
 }
예제 #3
0
 public function __construct(HashMap $map)
 {
     $this->items = $map->getAll();
 }