1.0.0.rc1 update

This commit is contained in:
talonos
2016-02-18 19:54:20 +00:00
parent 862bee5dd0
commit e26fc429f0

View File

@@ -1,11 +1,12 @@
<?php <?php
/** /**
* *
* @package phpBB Extension - mChat * @package phpBB Extension - mChat
* @copyright (c) 2015 dmzx - http://www.dmzx-web.net * @copyright (c) 2015 dmzx - http://www.dmzx-web.net
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
* *
*/ */
namespace dmzx\mchat\event; namespace dmzx\mchat\event;
@@ -46,6 +47,9 @@ class listener implements EventSubscriberInterface
$this->php_ext = $php_ext; $this->php_ext = $php_ext;
} }
/**
* @return array
*/
static public function getSubscribedEvents() static public function getSubscribedEvents()
{ {
return array( return array(
@@ -59,8 +63,8 @@ class listener implements EventSubscriberInterface
} }
/** /**
* * @param object $event The event object
*/ */
public function add_page_viewonline($event) public function add_page_viewonline($event)
{ {
if (strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/mchat') === 0) if (strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/mchat') === 0)
@@ -71,8 +75,8 @@ class listener implements EventSubscriberInterface
} }
/** /**
* * @param object $event The event object
*/ */
public function load_language_on_setup($event) public function load_language_on_setup($event)
{ {
$lang_set_ext = $event['lang_set_ext']; $lang_set_ext = $event['lang_set_ext'];
@@ -84,12 +88,10 @@ class listener implements EventSubscriberInterface
} }
/** /**
* Create a URL to the mchat controller file for the header linklist * Create a URL to the mchat controller file for the header linklist
* *
* @param object $event The event object * @param object $event The event object
* @return null */
* @access public
*/
public function add_page_header_link($event) public function add_page_header_link($event)
{ {
$this->mchat->render_page_header_link(); $this->mchat->render_page_header_link();
@@ -99,8 +101,6 @@ class listener implements EventSubscriberInterface
* Check if mchat should be displayed on index. * Check if mchat should be displayed on index.
* *
* @param object $event The event object * @param object $event The event object
* @return null
* @access public
*/ */
public function display_mchat_on_index($event) public function display_mchat_on_index($event)
{ {
@@ -136,8 +136,8 @@ class listener implements EventSubscriberInterface
} }
/** /**
* * @param object $event The event object
*/ */
public function posting_modify_submit_post_after($event) public function posting_modify_submit_post_after($event)
{ {
$this->functions_mchat->mchat_insert_posting($event['mode'], array( $this->functions_mchat->mchat_insert_posting($event['mode'], array(
@@ -149,16 +149,16 @@ class listener implements EventSubscriberInterface
} }
/** /**
* * @param object $event The event object
*/ */
public function display_custom_bbcodes_modify_sql($event) public function display_custom_bbcodes_modify_sql($event)
{ {
$event['sql_ary'] = $this->mchat->remove_disallowed_bbcodes($event['sql_ary']); $event['sql_ary'] = $this->mchat->remove_disallowed_bbcodes($event['sql_ary']);
} }
/** /**
* * @param object $event The event object
*/ */
public function permissions($event) public function permissions($event)
{ {
$event['permissions'] = array_merge($event['permissions'], array( $event['permissions'] = array_merge($event['permissions'], array(