示例#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();
 }