public function get_installed_blocks() {
        global $DB;
        if (is_null($this->allblocks)) {
            $this->allblocks = $DB->get_records('block');
        }
        return $this->allblocks;
    }
public function get_installed_blocks() {
        global $DB;
        if (is_null($this->allblocks)) {
            $this->allblocks = $DB->get_records('block');
        }
        return $this->allblocks;
    }
public function get_installed_blocks ( ) { global $ DB ; if ( is_null ( $ this -> allblocks ) ) { $ this -> allblocks = $ DB -> get_records ( 'block' ) ; } return $ this -> allblocks ; }
Get an array of all of the installed blocks.

@return array contents of the block table.
Get an array of all of the installed blocks .