Skip to content

Commit

Permalink
Updating some methods' encapsulation. (#1379)
Browse files Browse the repository at this point in the history
The following methods' encapsulation was modified:
  - \erLhcoreClassChatExport::chatExportXML
  - \erLhcoreClassChatExport::chatExportJSON
  • Loading branch information
Ilya Bakhlin authored and remdex committed Sep 23, 2019
1 parent 1d4259d commit 714a68f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lhc_web/lib/core/lhchat/lhchatexport.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

class erLhcoreClassChatExport {

public function chatExportXML(erLhcoreClassModelChat $chat) {
public static function chatExportXML(erLhcoreClassModelChat $chat) {
$tpl = new erLhcoreClassTemplate('lhexport/xml.tpl.php');
$tpl->set('chat', $chat);
return $tpl->fetch();
}

public function chatExportJSON(erLhcoreClassModelChat $chat) {
public static function chatExportJSON(erLhcoreClassModelChat $chat) {
$tpl = new erLhcoreClassTemplate('lhexport/json.tpl.php');
$tpl->set('chat', $chat);
return $tpl->fetch();
Expand Down Expand Up @@ -235,4 +235,4 @@ public static function chatListExportXLS($chats, $params = array()) {
}
}

?>
?>

0 comments on commit 714a68f

Please sign in to comment.