Commenting deprecated
class Commenting (View source)
deprecated since version 2.0
Helper Class for storing the configuration options. Retains the mapping between objects which have comments attached and the related configuration options.
Also handles adding the Commenting extension to the DataObject on behalf of the user.
For documentation on how to use this class see docs/en/Configuration.md
Methods
Removes commenting from a DataObject. Does not remove existing comments but does remove the extension.
Sets a value for a class of a given config setting. Passing 'all' as the class sets it for everything
Returns a given config value for a commenting class
Determines whether a config value on the commenting extension matches a given value.
Return whether a user can post on a given commenting instance
Details
static
add($class, array $settings = false)
deprecated
deprecated since version 2.0
Adds commenting to a DataObject
static
remove(string $class)
deprecated
deprecated since version 2.0
Removes commenting from a DataObject. Does not remove existing comments but does remove the extension.
static bool
has_commenting($class)
deprecated
deprecated since version 2.0
Returns whether a given class name has commenting enabled
static
set_config_value(string $class, string $key, mixed $value = false)
deprecated
deprecated since version 2.0
Sets a value for a class of a given config setting. Passing 'all' as the class sets it for everything
static mixed
get_config_value(string $class, string $key)
deprecated
deprecated since version 2.0
Returns a given config value for a commenting class
static bool
config_value_equals(string $class, string $key, string $value)
deprecated
deprecated since version 2.0
Determines whether a config value on the commenting extension matches a given value.
static bool
can_member_post(string $class)
deprecated
deprecated since version 2.0
Return whether a user can post on a given commenting instance