src/libraries/adapters/DatabaseMySql.php
/**
    * Add a new webhook to the database
    *
    * @param string $id ID of the webhook to update which is always 1.
    * @param array $params Attributes to update.
    * @return boolean
    */
Add a new webhook to the database
@param string $id ID of the webhook to update which is always 1.
@param array $params Attributes to update.
@return boolean
Add a new webhook to the database @param string $id ID of the webhook to update which is always 1 . @param array $params Attributes to update . @return boolean
public function putWebhook($id, $params)
  {
    $stmt = $this->sqlInsertExplode($params);
    $result = $this->db->execute("INSERT INTO `{$this->mySqlTablePrefix}webhook` (id,owner,{$stmt['cols']}) VALUES (:id,:owner,{$stmt['vals']})", array(':id' => $id, ':owner' => $this->owner));
    return $result !== false;
  }
public function putWebhook ( $ id , $ params ) { $ stmt = $ this -> sqlInsertExplode ( $ params ) ; $ result = $ this -> db -> execute ( " INSERT INTO ` { $ this -> mySqlTablePrefix } webhook` (id,owner, { $ stmt [ 'cols' ] } ) VALUES (:id,:owner, { $ stmt [ 'vals' ] } ) " , array ( ':id' => $ id , ':owner' => $ this -> owner ) ) ; return $ result !== false ; }
Add a new webhook to the database
 @param string $id ID of the webhook to update which is always 1.
Add a new webhook to the database @param string $id ID of the webhook to update which is always 1 .