public function lti_createConsumer($name, $key = false, $secret = false)
    {
        /* @codingStandardsIgnoreEnd */
        if ($this->getToolProvider()->createConsumer($name, $key, $secret)) {
            $this->log("Created consumer $name");
            return true;
        } else {
            $this->log("Could not recreate consumer '$name', consumer already exists");
            return false;
        }
    }
public function lti_createConsumer($name, $key = false, $secret = false)
    {
        /* @codingStandardsIgnoreEnd */
        if ($this->getToolProvider()->createConsumer($name, $key, $secret)) {
            $this->log("Created consumer $name");
            return true;
        } else {
            $this->log("Could not recreate consumer '$name', consumer already exists");
            return false;
        }
    }
public function lti_createConsumer ( $ name , $ key = false , $ secret = false ) { /* @codingStandardsIgnoreEnd */ if ( $ this -> getToolProvider ( ) -> createConsumer ( $ name , $ key , $ secret ) ) { $ this -> log ( "Created consumer $name" ) ; return true ; } else { $ this -> log ( "Could not recreate consumer '$name', consumer already exists" ) ; return false ; } }
Create a new Tool consumer

@see ToolProvider::createConsumer() Pass-through to `ToolProvider::createConsumer()`

@param  string $name Human-readable name
@param  string $key (Optional) Consumer key (unique within the tool provider)
@param  string $secret (Optional) Shared secret
@return boolean Whether or not the consumer was created
@codingStandardsIgnoreStart
Create a new Tool consumer