function getHashMap() { $indexes = new HashMap(); while ($item = $this->fetchArray()) { $indexes->add($item); } return $indexes; }
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; }
public function __construct(HashMap $map) { $this->items = $map->getAll(); }