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

  • CacheManager
  • ConfigBlock
  • ConfigOperation
  • Content
  • DeleteBlock
  • EditBlock
  • HomeExcludeOperation
  • HomeIncludeOperation
  • Hooks
  • ManageBlock
  • Model
  • Module
  • Rendered
  • SaveOperation
  • Update20140330
  • ViewProvider

Traits

  • DateProperty
 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\Contents;
13 
14 use Brickrouge\Element;
15 use Brickrouge\Group;
16 use Brickrouge\Text;
17 
18 /**
19  * A block to configure contents.
20  */
21 class ConfigBlock extends \Icybee\ConfigBlock
22 {
23     protected function lazy_get_attributes()
24     {
25         $attributes = parent::lazy_get_attributes();
26 
27         $attributes[Element::GROUPS]['limits'] = [ 'title' => 'limits' ];
28 
29         return $attributes;
30     }
31 
32     protected function lazy_get_children()
33     {
34         $ns = $this->module->flat_id;
35 
36         return array_merge(parent::lazy_get_children(), [
37 
38             "local[$ns.default_editor]" => new Text([
39 
40                 Group::LABEL => 'default_editor'
41             ]),
42 
43             "local[$ns.use_multi_editor]" => new Element(Element::TYPE_CHECKBOX, [
44 
45                 Element::LABEL => 'use_multi_editor'
46             ]),
47 
48             "local[$ns.limits.home]" => new Text([
49 
50                 Group::LABEL => 'limits_home',
51                 Element::DEFAULT_VALUE => 3,
52                 Element::GROUP => 'limits'
53             ]),
54 
55             "local[$ns.limits.list]" => new Text([
56 
57                 Group::LABEL => 'limits_list',
58                 Element::DEFAULT_VALUE => 10,
59                 Element::GROUP => 'limits'
60             ])
61         ]);
62     }
63 }
Autodoc API documentation generated by ApiGen 2.8.0