xPDO.setAttribute
Последнее обновление Oct 17th, 2026 | История страницы | Улучшить эту страницу | Сообщить о проблеме
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn morexPDO::setAttribute¶
Устанавливает атрибут соединения PDO, например PDO::ATTR_ERRMODE или PDO::ATTR_DEFAULT_FETCH_MODE. Возвращает true при успехе, false при ошибке.
Синтаксис¶
boolean setAttribute (integer $attribute, mixed $value)
Пример¶
$xpdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
Смотрите также¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










