mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
6d3597095f
Includes functional tests for the RSSFeed but currently commented out until that feature lands in the main framework.
29 lines
702 B
PHP
29 lines
702 B
PHP
<?php
|
|
|
|
/**
|
|
* Comments Default Configuration
|
|
*
|
|
* To enable comments on your own {@link DataObject}'s you need to
|
|
* call Commenting::add_comments($object_name, $settings);
|
|
*
|
|
* Where $object_name is the name of the subclass of DataObject you want
|
|
* to add the comments to and $settings is a map of configuration options
|
|
* and values
|
|
*
|
|
* Example: mysite/_config.php
|
|
*
|
|
* <code>
|
|
* // uses the default values
|
|
* Commenting::add('SiteTree');
|
|
*
|
|
* // set configuration
|
|
* Commenting::add('SiteTree', array(
|
|
* 'require_login' => true
|
|
* ));
|
|
* </code>
|
|
*
|
|
* To see all the configuration options read docs/en/Configuration.md or
|
|
* consult the Commenting class.
|
|
*/
|
|
|
|
Commenting::add('SiteTree'); |