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

  • ArchivesView
  • Article
  • EditBlock
  • Hooks
  • Model
  • 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\Articles;
13 
14 use Icybee\Modules\Views\View;
15 
16 class Module extends \Icybee\Modules\Contents\Module
17 {
18     /**
19      * Adds the "archives" view type and adds assets to the inherited "list" view type.
20      */
21     protected function lazy_get_views()
22     {
23         $assets = array
24         (
25             'css' => array(DIR . 'public/page.css')
26         );
27 
28         return \ICanBoogie\array_merge_recursive
29         (
30             parent::lazy_get_views(), array
31             (
32                 'list' => array
33                 (
34                     'assets' => $assets
35                 ),
36 
37                 'archives' => array
38                 (
39                     'title' => "Archives des articles",
40                     'class' => __NAMESPACE__ . '\ArchivesView',
41                     'provider' => 'Icybee\Modules\Contents\ViewProvider',
42                     'assets' => $assets,
43                     'renders' => View::RENDERS_MANY
44                 )
45             )
46         );
47     }
48 }
Autodoc API documentation generated by ApiGen 2.8.0