Commenting deprecated
class Commenting (View source)
deprecated
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
static
remove(string $class)
deprecated
deprecated
Removes commenting from a DataObject. Does not remove existing comments but does remove the extension.
static bool
has_commenting($class)
deprecated
deprecated
Returns whether a given class name has commenting enabled
static
set_config_value(string $class, string $key, mixed $value = false)
deprecated
deprecated
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
Returns a given config value for a commenting class
static bool
config_value_equals(string $class, string $key, string $value)
deprecated
deprecated
Determines whether a config value on the commenting extension matches a given value.
static bool
can_member_post(string $class)
deprecated
deprecated
Return whether a user can post on a given commenting instance