PHP Classes

File: config/app.interface.php

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis Messenger   config/app.interface.php   Download  
File: config/app.interface.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Melis Messenger
Exchange messages between Melis platform users
Author: By
Last change:
Date: 5 months ago
Size: 7,187 bytes
 

Contents

Class file image Download
<?php
   
return array(
       
'plugins' => array(
           
'meliscore' => array(
               
'interface' => array(
                   
'meliscore_header' => array(//display the messenger header notifications
                       
'interface' => array(
                           
'melismessenger_tool_header_messages' => array(
                               
'conf' => array(
                                   
'type' => 'melistoolmessenger/interface/melismessenger_tool_header_messages'
                               
)
                            ),
                         ),
                     ),
                   
'meliscore_leftmenu' => array(//manage the tabs of user profile
                       
'interface' => array(
                           
'meliscore_leftmenu_identity' => array(
                               
'interface' => array(
                                   
'meliscore_user_profile' => array(
                                       
'interface' => array(
                                           
'meliscore_user_profile_right' => array(
                                               
'interface' => array(
                                                   
'meliscore_user_profile_tabs' => array(
                                                       
'interface' => array(
                                                           
'melismessenger_tool' => array(
                                                               
'conf' => array(
                                                                   
'type' => 'melistoolmessenger/interface/melismessenger_tool'
                                                               
)
                                                            ),
                                                        ),
                                                    ),
                                                ),
                                            ),
                                        ),
                                    ),
                                ),
                            ),
                        ),
                    ),
                ),
            ),
           
'melistoolmessenger' => array(
               
'conf' => array(
                   
'id' => '',
                   
'name' => 'tr_melismessenger_tool_name',
                   
'rightsDisplay' => 'none',
                ),
               
'ressources' => array(
                   
'js' => array(
                      
'/MelisMessenger/plugins/tokenize2.min.js',
                      
'/MelisMessenger/js/tools/messenger-tool.js',
                    ),
                   
'css' => array(
                      
'/MelisMessenger/plugins/tokenize2.min.css',
                      
'/MelisMessenger/css/messenger-tool.css',
                    ),
                   
/**
                     * the "build" configuration compiles all assets into one file to make
                     * lesser requests
                     */
                   
'build' => [
                       
// lists of assets that will be loaded in the layout
                       
'css' => [
                           
'/MelisMessenger/build/css/bundle.css',

                        ],
                       
'js' => [
                           
'/MelisMessenger/build/js/bundle.js',
                        ]
                    ]
                ),
               
'datas' => array(
                   
'default' => array(//default time interval where the messages refresh its data
                       
'messenger' => array(
                           
'msg_interval' => 1000 * 60, // in milliseconds (default is 1 min)
                       
),
                    ),
                ),
               
'interface' => array(
                   
'melismessenger_tool' => array(
                       
'conf' => array(
                           
'id' => 'id_melismessenger_tool',
                           
'melisKey' => 'melismessenger_tool',
                           
'name' => 'tr_melismessenger_tool_name',
                           
'icon' => 'comments',
                        ),
                       
'forward' => array(
                           
'module' => 'MelisMessenger',
                           
'controller' => 'MelisMessenger',
                           
'action' => 'render-messenger',
                           
'jscallback' => 'messengerTool.initTokenizePlugin();',
                           
'jsdatas' => array()
                        ),
                       
'interface' => array(
                           
'melismessenger_tool_content' => array(
                               
'conf' => array(
                                   
'id' => 'id_melismessenger_tool_content',
                                   
'melisKey' => 'melismessenger_tool_content',
                                   
'name' => 'tr_melismessenger_tool_name',
                                ),
                               
'forward' => array(
                                   
'module' => 'MelisMessenger',
                                   
'controller' => 'MelisMessenger',
                                   
'action' => 'render-messenger-tool-content',
                                   
'jscallback' => 'messengerTool.loadMessages();',
                                   
'jsdatas' => array()
                                ),
                            ),
                           
'melismessenger_tool_contact' => array(
                               
'conf' => array(
                                   
'id' => 'id_melismessenger_tool_contact',
                                   
'melisKey' => 'melismessenger_tool_contact',
                                   
'name' => 'tr_melismessenger_tool_name',
                                ),
                               
'forward' => array(
                                   
'module' => 'MelisMessenger',
                                   
'controller' => 'MelisMessenger',
                                   
'action' => 'render-messenger-contact',
                                   
'jscallback' => 'messengerTool.loadContact();',
                                   
'jsdatas' => array()
                                ),
                            ),
                        ),
                    ),
                   
'melismessenger_tool_header_messages' => array(
                       
'conf' => array(
                           
'id' => 'id_melismessenger_tool_header_messages',
                           
'melisKey' => 'melismessenger_tool_header_messages',
                           
'name' => 'tr_melismessenger_tool_name',
                        ),
                       
'forward' => array(
                           
'module' => 'MelisMessenger',
                           
'controller' => 'MelisMessenger',
                           
'action' => 'header-messenger',
                           
'jscallback' => '',
                           
'jsdatas' => array()
                        ),
                    ),
                ),
            ),
        ),
    );