Piwik\Plugins\Dashboard\Model::updateLayoutForUser PHP Method

updateLayoutForUser() public method

Records the layout in the DB for the given user.
public updateLayoutForUser ( string $login, integer $idDashboard, string $layout )
$login string
$idDashboard integer
$layout string
    public function updateLayoutForUser($login, $idDashboard, $layout)
    {
        $bind = array($login, $idDashboard, $layout, $layout);
        $query = sprintf('INSERT INTO %s (login, iddashboard, layout) VALUES (?,?,?) ON DUPLICATE KEY UPDATE layout=?', $this->table);
        Db::query($query, $bind);
    }