44 lines
820 B
PHP
44 lines
820 B
PHP
<?php
|
|
/**
|
|
* @brief Chat Application Class
|
|
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
|
* @copyright (c) 2014 Invision Power Services, Inc.
|
|
* @package IPS Social Suite
|
|
* @subpackage Chat
|
|
* @since 03 Jan 2014
|
|
* @version
|
|
*/
|
|
|
|
namespace IPS\chat;
|
|
|
|
/**
|
|
* Chat Application Class
|
|
*/
|
|
class _Application extends \IPS\Application
|
|
{
|
|
/**
|
|
* Install 'other' items.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function installOther()
|
|
{
|
|
/* Set non guests to be able to access */
|
|
foreach( \IPS\Member\Group::groups( TRUE, FALSE ) as $group )
|
|
{
|
|
$group->chat_access = TRUE;
|
|
$group->save();
|
|
}
|
|
}
|
|
|
|
/**
|
|
* [Node] Get Icon for tree
|
|
*
|
|
* @note Return the class for the icon (e.g. 'globe')
|
|
* @return string|null
|
|
*/
|
|
protected function get__icon()
|
|
{
|
|
return 'comment';
|
|
}
|
|
} |