public function getToolConsumers() {
        global $DB;
        $consumers = [];

        $rsconsumers = $DB->get_recordset($this->consumertable, null, 'name');
        foreach ($rsconsumers as $row) {
            $consumer = new ToolProvider\ToolConsumer($row->consumerkey, $this);
            $this->build_tool_consumer_object($row, $consumer);
            $consumers[] = $consumer;
        }
        $rsconsumers->close();

        return $consumers;
    }
public function getToolConsumers() {
        global $DB;
        $consumers = [];

        $rsconsumers = $DB->get_recordset($this->consumertable, null, 'name');
        foreach ($rsconsumers as $row) {
            $consumer = new ToolProvider\ToolConsumer($row->consumerkey, $this);
            $this->build_tool_consumer_object($row, $consumer);
            $consumers[] = $consumer;
        }
        $rsconsumers->close();

        return $consumers;
    }
public function getToolConsumers ( ) { global $ DB ; $ consumers = [ ] ; $ rsconsumers = $ DB -> get_recordset ( $ this -> consumertable , null , 'name' ) ; foreach ( $ rsconsumers as $ row ) { $ consumer = new ToolProvider \ ToolConsumer ( $ row -> consumerkey , $ this ) ; $ this -> build_tool_consumer_object ( $ row , $ consumer ) ; $ consumers [ ] = $ consumer ; } $ rsconsumers -> close ( ) ; return $ consumers ; }
Load all tool consumers from the database.
@return array
Load all tool consumers from the database .