This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Vodex\Logger\Observer; | |
/** | |
* @category Logger | |
* @package Vodex_Logger | |
* @author [email protected] | |
* @website https://vodex.co.id | |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$options = array( | |
"user_email" => $userEmail, | |
"path" => $visitedPath, | |
"action_name" => $actionName, | |
"store_id" => $webStore, | |
"remote_ip" => $remoteIp, | |
"created_at" => $date | |
); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); | |
$loggerModel = $objectManager->create('Vodex\Logger\Model\Logger'); | |
$loggerModel->setData($options); | |
$loggerModel->save(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$options = array( | |
"user_email" => $userEmail, | |
"path" => $visitedPath, | |
"action_name" => $actionName, | |
"store_id" => $webStore, | |
"remote_ip" => $remoteIp, | |
"created_at" => $date | |
); |
NewerOlder