Ejemplo n.º 1
0
 function getAllMap()
 {
     $b = new BitBoard();
     $listHash = array();
     $l = $b->getList($listHash);
     $ret = array();
     foreach ($l as $k => $boardd) {
         $board = new BitBoard($boardd['board_id']);
         $board->mInfo = $boardd;
         $ret['map'][$k] = $boardd;
         $ret['map'][$k]['map'] = $board->getMap();
         $ret['map'][$k]['integrity'] = $board->verifyIntegrity();
     }
     // reorganise unmapped content for better display
     $umapped = $b->getUnMapped();
     foreach ($umapped as $key => $content) {
         $umap[$content['content_name']][$key] = $content;
     }
     $ret['umap'] = $umap;
     return $ret;
 }