Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
CommentsWidget.php
1 <?php
2 /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  *
10  * Widget for view comments for current model
11  */
13 {
14  /**
15  * @var string moderator email
16  */
17  public $moderatorEmail;
18 
19  /**
20  * @var bool If notify moderator on new comments
21  */
22  public $notifyModeratorOnNew = true;
23 
24  /**
25  * @var bool Allow anonymous comments or not
26  */
27  public $allowAnonymous = true;
28 
29  /**
30  * @var bool If comments needs moderator approve
31  */
32  public $dontNeedApprove = false;
33  /**
34  * @var bool If threaded commenting allowed (only 1 level)
35  */
36  public $oneLevelReply = false;
37 
38  /**
39  * @var int comments per page
40  */
41  public $commentsPerPage = 5;
42 
43  /**
44  * @var int how many pagination pages numbers will be displayed at the same time
45  */
46  public $paginationPagesCount = 5;
47 
48  /**
49  * @var What fields in anonymous form will be required (default all)
50  */
51  public $requiredForAnonymous = null;
52  /**
53  * Override base init. For skipping scripts and css init.
54  *
55  * @return void
56  */
57  public function init()
58  {
59 
60  }
61 
62 
63  /**
64  * Render CommentsWidget view
65  *
66  * @return void
67  */
68  public function run()
69  {
70  $this->render('CommentsWidget');
71  }
72 }
73 
74 ?>