SimpleSAML\Database::write PHP Метод

write() публичный Метод

This executes queries directly on the master.
public write ( string $stmt, array $params = [] ) : integer
$stmt string Prepared SQL statement
$params array Parameters
Результат integer The number of rows affected by the query.
    public function write($stmt, $params = array())
    {
        $db = $this->dbMaster;
        if (is_array($params)) {
            $obj = $this->query($db, $stmt, $params);
            return $obj->rowCount();
        } else {
            return $this->exec($db, $stmt);
        }
    }