public function addBulk(array $tasks) {

        $result = [];

        foreach($tasks as $name => $task) {

            if ( empty($task['class']) ) {

                $this->logger->warning("Missing class for task $name");
                $result[] = false;

            } else {

                $result[] = $this->add($name, $task['class'], empty($task['description']) ? null : $task['description']);

            }

        }

        return $result;

    }
public function addBulk(array $tasks) {

        $result = [];

        foreach($tasks as $name => $task) {

            if ( empty($task['class']) ) {

                $this->logger->warning("Missing class for task $name");
                $result[] = false;

            } else {

                $result[] = $this->add($name, $task['class'], empty($task['description']) ? null : $task['description']);

            }

        }

        return $result;

    }
public function addBulk ( array $ tasks ) { $ result = [ ] ; foreach ( $ tasks as $ name => $ task ) { if ( empty ( $ task [ 'class' ] ) ) { $ this -> logger -> warning ( "Missing class for task $name" ) ; $ result [ ] = false ; } else { $ result [ ] = $ this -> add ( $ name , $ task [ 'class' ] , empty ( $ task [ 'description' ] ) ? null : $ task [ 'description' ] ) ; } } return $ result ; }
Load a bulk task list into the table

@param array $tasks
@return bool
Load a bulk task list into the table