canReopenDirectly() public static method

public static canReopenDirectly ( $params = [] )
        $tosVariable = 'offline_tos_visible_in_page_widget';
        $tosCheckedVariable = 'tos_checked_offline';
        ?>
	<?php 
        include_once erLhcoreClassDesign::designtpl('lhchat/part/accept_tos.tpl.php');
        ?>

	<div class="btn-group" role="group" aria-label="...">
  		<?php 
        include erLhcoreClassDesign::designtpl('lhchat/part/buttons/leave_a_message_button_widget.tpl.php');
        ?>
  		<?php 
        include erLhcoreClassDesign::designtpl('lhchat/part/offline_button_multiinclude.tpl.php');
        ?>
		<?php 
        if (erLhcoreClassModelChatConfig::fetch('reopen_chat_enabled')->current_value == 1 && ($reopenData = erLhcoreClassChat::canReopenDirectly(array('reopen_closed' => erLhcoreClassModelChatConfig::fetch('allow_reopen_closed')->current_value))) !== false) {
            ?>
		    <?php 
            include erLhcoreClassDesign::designtpl('lhchat/part/buttons/reopen_offline_button_widget.tpl.php');
            ?>
	  	<?php 
        }
        ?>
	</div>
	
	<input type="hidden" value="<?php 
        echo htmlspecialchars($referer);
        ?>
" name="URLRefer"/>
	<input type="hidden" value="1" name="StartChat"/>