src/libraries/adapters/DatabaseMySql.php
/**
    * Add a new activity to the database
    * This method does not overwrite existing values present in $params - hence "new action".
    *
    * @param string $id ID of the action to update which is always 1.
    * @param array $params Attributes to update.
    * @return boolean
    */
Add a new activity to the database
This method does not overwrite existing values present in $params - hence "new action".

@param string $id ID of the action to update which is always 1.
@param array $params Attributes to update.
@return boolean
Add a new activity to the database This method does not overwrite existing values present in $params - hence " new action " . @param string $id ID of the action to update which is always 1 . @param array $params Attributes to update . @return boolean
public function putActivity($id, $params)
  {
    $stmt = $this->sqlInsertExplode($this->prepareActivity($params));
    $result = $this->db->execute("REPLACE INTO `{$this->mySqlTablePrefix}activity` (id,{$stmt['cols']}) VALUES (:id,{$stmt['vals']})", array(':id' => $id));
    return ($result !== false);
  }
public function putActivity ( $ id , $ params ) { $ stmt = $ this -> sqlInsertExplode ( $ this -> prepareActivity ( $ params ) ) ; $ result = $ this -> db -> execute ( " REPLACE INTO ` { $ this -> mySqlTablePrefix } activity` (id, { $ stmt [ 'cols' ] } ) VALUES (:id, { $ stmt [ 'vals' ] } ) " , array ( ':id' => $ id ) ) ; return ( $ result !== false ) ; }
Add a new activity to the database
 This method does not overwrite existing values present in $params - hence "new action".
Add a new activity to the database This method does not overwrite existing values present in $params - hence " new action " .