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

  • ActivateOperation
  • DeactivateOperation
  • InactivesBlock
  • ManageBlock
  • ManageController
  • Module
 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\Modules;
13 
14 use ICanBoogie\Operation;
15 
16 use Brickrouge\Button;
17 use Brickrouge\Element;
18 
19 use Icybee\Element\ActionbarToolbar;
20 
21 class InactivesBlock extends ManageBlock
22 {
23     public function __construct(Module $module, array $attributes=array())
24     {
25         global $core;
26 
27         parent::__construct
28         (
29             $module, $attributes + array
30             (
31                 self::ENTRIES => $core->modules->disabled_modules_descriptors,
32                 self::COLUMNS => array
33                 (
34                     'key' =>        __NAMESPACE__ . '\ManageBlock\KeyColumn',
35                     'title' =>      __NAMESPACE__ . '\ManageBlock\TitleColumn',
36                     'version' =>    __NAMESPACE__ . '\ManageBlock\VersionColumn',
37                     'dependency' => __NAMESPACE__ . '\ManageBlock\DependencyColumn'
38                 )
39             )
40         );
41     }
42 
43     protected function attach_buttons()
44     {
45         global $core;
46 
47         $core->events->attach(function(ActionbarToolbar\CollectEvent $event, ActionbarToolbar $target) {
48 
49             $event->buttons[] = new Button
50             (
51                 'Enable selected modules', array
52                 (
53                     'class' => 'btn-primary btn-danger',
54                     'type' => 'submit',
55                     'data-target' => '.form-primary'
56                 )
57             );
58 
59         });
60     }
61 }
Autodoc API documentation generated by ApiGen 2.8.0