* @package WoltLabSuite\Core\Data * @since 3.0 */ trait TDatabaseObjectOptions { /** * Returns true if at least one of the options required by this object is set. * * @return bool */ public function validateOptions() { if ($this->options) { $options = \explode(',', \strtoupper($this->options)); foreach ($options as $option) { if (\defined($option) && \constant($option)) { return true; } } return false; } return true; } }