Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • Comment
  • ConfigBlock
  • ConfigOperation
  • DeleteBlock
  • DeleteOperation
  • EditBlock
  • Hooks
  • ManageBlock
  • Model
  • Module
  • PatchOperation
  • PreviewOperation
  • SaveOperation
  • SubmitForm
  • Update20131208
  • ViewProvider
 1 <?php
 2 
 3 /*
 4  * This file is part of the Icybee package.
 5  *
 6  * (c) Olivier Laviale <olivier.laviale@gmail.com>
 7  *
 8  * For the full copyright and license information, please view the LICENSE
 9  * file that was distributed with this source code.
10  */
11 
12 namespace Icybee\Modules\Comments;
13 
14 use Brickrouge\Element;
15 use Brickrouge\Form;
16 use Brickrouge\Text;
17 
18 /**
19  * Configuration block.
20  */
21 class ConfigBlock extends \Icybee\ConfigBlock
22 {
23     protected function lazy_get_attributes()
24     {
25         return \ICanBoogie\array_merge_recursive
26         (
27             parent::lazy_get_attributes(), array
28             (
29                 Element::GROUPS => array
30                 (
31                     'response' => array
32                     (
33                         'title' => "Message de notification à l'auteur lors d'une réponse"
34                     ),
35 
36                     'spam' => array
37                     (
38                         'title' => 'Paramètres anti-spam'
39                     )
40                 )
41             )
42         );
43     }
44 
45     protected function lazy_get_children()
46     {
47         global $core;
48 
49         $ns = $this->module->flat_id;
50 
51         return array_merge
52         (
53             parent::lazy_get_children(), array
54             (
55                 "local[$ns.form_id]" => new \Icybee\Modules\Forms\PopForm
56                 (
57                     'select', array
58                     (
59                         Form::LABEL => 'Formulaire',
60                         Element::GROUP => 'primary',
61                         Element::REQUIRED => true,
62                         Element::DESCRIPTION => "Il s'agit du formulaire à utiliser pour la
63                         saisie des commentaires."
64                     )
65                 ),
66 
67                 "local[$ns.default_status]" => new Element
68                 (
69                     'select', array
70                     (
71                         Form::LABEL => 'Status par défaut',
72                         Element::OPTIONS => array
73                         (
74                             'pending' => 'Pending',
75                             'approved' => 'Approuvé'
76                         ),
77                         Element::DESCRIPTION => "Il s'agit du status par défaut pour les nouveaux
78                         commentaires."
79                     )
80                 ),
81 
82                 "local[$ns.delay]" => new Text
83                 (
84                     array
85                     (
86                         Form::LABEL => 'Intervale entre deux commentaires',
87                         Text::ADDON => 'minutes',
88                         Element::DEFAULT_VALUE => 3,
89                         Element::GROUP => 'spam',
90 
91                         'size' => 3,
92                         'class' => 'measure'
93                     )
94                 )
95             )
96         );
97     }
98 }
Autodoc API documentation generated by ApiGen 2.8.0