public function Exporter::setSettings in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/aklump/loft_data_grids/src/AKlump/LoftDataGrids/Exporter.php \AKlump\LoftDataGrids\Exporter::setSettings()
Set the settings object.
Parameters
object|array $settings: If an array, the keys will be used as the property name, and the values as values.
Return value
$this
Overrides ExporterInterface::setSettings
File
- vendor/
aklump/ loft_data_grids/ src/ AKlump/ LoftDataGrids/ Exporter.php, line 53
Class
- Exporter
- Class Exporter
Namespace
AKlump\LoftDataGridsCode
public function setSettings($settings) {
$this->settings = new \stdClass();
foreach ($settings as $name => $value) {
$this
->addSetting($name, $value);
}
return $this;
}