예제 #1
0
 public function all()
 {
     $blocks_res = array();
     $blocks = parent::all();
     foreach ($blocks as $block) {
         $blocks_res[$block['block_id']] = $block;
     }
     return $blocks_res;
 }