Skip to content

Commit 246ed8a

Browse files
committed
[TASK] Refactored history model
1 parent c66309a commit 246ed8a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

  • src/app/code/community/FireGento/AdminMonitoring/Model

src/app/code/community/FireGento/AdminMonitoring/Model/History.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,21 @@ public function getDecodedContentDiff()
7979
*
8080
* @return array Decoded Content
8181
*/
82-
private function getDecodedContent()
82+
public function getDecodedContent()
8383
{
8484
return json_decode($this->getContent(), true);
8585
}
8686

87+
/**
88+
* Check if the history action is an update action.
89+
*
90+
* @return bool Result
91+
*/
92+
public function isInsert()
93+
{
94+
return ($this->getAction() == FireGento_AdminMonitoring_Helper_Data::ACTION_INSERT);
95+
}
96+
8797
/**
8898
* Check if the history action is an update action.
8999
*

0 commit comments

Comments
 (0)