diff --git a/include/simpleplugin/class_simplePlugin.inc b/include/simpleplugin/class_simplePlugin.inc index 0717f53d9a92cb881d2414cf0002051c794dcbd5..f46cb3fec493eb235d60a2531d6e79cb3edaf85f 100755 --- a/include/simpleplugin/class_simplePlugin.inc +++ b/include/simpleplugin/class_simplePlugin.inc @@ -28,6 +28,7 @@ * */ +#[AllowDynamicProperties] class simplePlugin implements SimpleTab { /*! \brief This attribute store all information about attributes */ @@ -450,15 +451,10 @@ class simplePlugin implements SimpleTab $this->attributesAccess[$name]->setValue($value); } else { /* Ensure $name is an allowed property */ - if (property_exists($this, $name)) { $this->$name = $value; - } else { - trigger_error("Attempted to set an undefined property: $name", E_USER_WARNING); - } } } - /*! \brief This function allows to use the syntax isset($plugin->attributeName) It returns FALSE if the attribute has an empty value.