Version 1.0.0-RC1
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package phpBB Extension - mChat
|
||||
* @copyright (c) 2015 dmzx - http://www.dmzx-web.net
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
*
|
||||
* @package phpBB Extension - mChat
|
||||
* @copyright (c) 2015 dmzx - http://www.dmzx-web.net
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
namespace dmzx\mchat\event;
|
||||
|
||||
@@ -46,6 +47,9 @@ class listener implements EventSubscriberInterface
|
||||
$this->php_ext = $php_ext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
static public function getSubscribedEvents()
|
||||
{
|
||||
return array(
|
||||
@@ -60,8 +64,8 @@ class listener implements EventSubscriberInterface
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
* @param object $event The event object
|
||||
*/
|
||||
public function add_page_viewonline($event)
|
||||
{
|
||||
if (strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/mchat') === 0)
|
||||
@@ -72,8 +76,8 @@ class listener implements EventSubscriberInterface
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
* @param object $event The event object
|
||||
*/
|
||||
public function load_language_on_setup($event)
|
||||
{
|
||||
$lang_set_ext = $event['lang_set_ext'];
|
||||
@@ -85,12 +89,10 @@ class listener implements EventSubscriberInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a URL to the mchat controller file for the header linklist
|
||||
*
|
||||
* @param object $event The event object
|
||||
* @return null
|
||||
* @access public
|
||||
*/
|
||||
* Create a URL to the mchat controller file for the header linklist
|
||||
*
|
||||
* @param object $event The event object
|
||||
*/
|
||||
public function add_page_header_link($event)
|
||||
{
|
||||
$this->mchat->render_page_header_link();
|
||||
@@ -100,8 +102,6 @@ class listener implements EventSubscriberInterface
|
||||
* Check if mchat should be displayed on index.
|
||||
*
|
||||
* @param object $event The event object
|
||||
* @return null
|
||||
* @access public
|
||||
*/
|
||||
public function display_mchat_on_index($event)
|
||||
{
|
||||
@@ -109,8 +109,8 @@ class listener implements EventSubscriberInterface
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
* @param object $event The event object
|
||||
*/
|
||||
public function posting_modify_submit_post_after($event)
|
||||
{
|
||||
$this->functions_mchat->mchat_insert_posting($event['mode'], array(
|
||||
@@ -122,16 +122,16 @@ class listener implements EventSubscriberInterface
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
* @param object $event The event object
|
||||
*/
|
||||
public function display_custom_bbcodes_modify_sql($event)
|
||||
{
|
||||
$event['sql_ary'] = $this->mchat->remove_disallowed_bbcodes($event['sql_ary']);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
* @param object $event The event object
|
||||
*/
|
||||
public function permissions($event)
|
||||
{
|
||||
$event['permissions'] = array_merge($event['permissions'], array(
|
||||
|
||||
Reference in New Issue
Block a user