public function set12HourClock($login, $use12HourClock)
    {
        $query = 'INSERT INTO ' . $this->table .
            ' (login, use_12_hour_clock) VALUES (?,?) ON DUPLICATE KEY UPDATE use_12_hour_clock=?';
        $bind  = array($login, $use12HourClock, $use12HourClock);
        Db::query($query, $bind);

        return true;
    }
public function set12HourClock($login, $use12HourClock)
    {
        $query = 'INSERT INTO ' . $this->table .
            ' (login, use_12_hour_clock) VALUES (?,?) ON DUPLICATE KEY UPDATE use_12_hour_clock=?';
        $bind  = array($login, $use12HourClock, $use12HourClock);
        Db::query($query, $bind);

        return true;
    }
public function set12HourClock ( $ login , $ use12HourClock ) { $ query = 'INSERT INTO ' . $ this -> table . ' (login, use_12_hour_clock) VALUES (?,?) ON DUPLICATE KEY UPDATE use_12_hour_clock=?' ; $ bind = array ( $ login , $ use12HourClock , $ use12HourClock ) ; Db :: query ( $ query , $ bind ) ; return true ; }
Sets whether the given user wants to use 12 hout clock

@param string $login
@param string $use12HourClock
@return bool
Sets whether the given user wants to use 12 hout clock