6 * Provides a method for validating database object options.
8 * @author Matthias Schmidt
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 trait TDatabaseObjectOptions
16 * Returns true if at least one of the options required by this object is set.
20 public function validateOptions()
23 $options = \
explode(',', \
strtoupper($this->options
));
24 foreach ($options as $option) {
25 if (\
defined($option) && \
constant($option)) {