/** * @param string $eventCode - unikalny kod reprezentujący (nazywający) zdarzenie * @param string $eventMessage - komunikat (wiadomość) zdarzenia * @param integer $idBasicProductDefinition - id definicji której dotyczy zdarzenie */ public function __construct($eventCode, $eventMessage, $idBasicProductDefinition = null) { parent::__construct($eventCode, $eventMessage); if ($idBasicProductDefinition == '') { throw new Logger_Exception('Nie podano parametru $idBasicProductDefinition'); } if (!is_null($idBasicProductDefinition)) { $this->addIdDefinition($idBasicProductDefinition); } }
/** * @param string $eventCode - unikalny kod reprezentujący (nazywający) zdarzenie * @param string $eventMessage - komunikat (wiadomość) zdarzenia * @param integer $idPackage - id pakietu którego dotyczy zdarzenie */ public function __construct($eventCode, $eventMessage, $idPackage = null) { parent::__construct($eventCode, $eventMessage); if ($idPackage == '') { throw new Logger_Exception('Nie podano parametru $idPackage'); } if (!is_null($idPackage)) { $this->addIdPackage($idPackage); } }
/** * * @param String $eventCode * @param String $eventMessage * @param int $itemType * @param int $itemExternalId * @param String $itemName * @param int $fileId * @param int $backendApplicationId */ public function __construct($eventCode, $eventMessage, $itemType, $itemExternalId, $itemName, $fileType, $fileId, $backendApplicationId) { $this->setItemType($itemType); $this->setItemExternalId($itemExternalId); $this->setItemName($itemName); $this->setFileType($fileType); $this->setFileId($fileId); $this->setBackendApplicationId($backendApplicationId); return parent::__construct($eventCode, $eventMessage); }
/** * @param string $eventCode - unikalny kod reprezentujący (nazywający) zdarzenie * @param string $eventMessage - komunikat (wiadomość) zdarzenia * @param integer $idCustomerSender - id klienta który zleca to zdarzenie * @param integer $idRelatedCustomer - id klienta którego dotyczy to zdarzenie */ public function __construct($eventCode, $eventMessage, $idCustomerSender = null, $idRelatedCustomer = null) { parent::__construct($eventCode, $eventMessage); if (!is_null($idRelatedCustomer)) { $this->addIdCustomer($idRelatedCustomer); } if (!is_null($idCustomerSender)) { $this->setIdCustomerSender($idCustomerSender); $this->addIdCustomer($idCustomerSender); } }
/** * @param string $eventCode - unikalny kod reprezentujący (nazywający) zdarzenie * @param string $eventMessage - komunikat (wiadomość) zdarzenia * @param integer $idBasicProduct - id produktu którego dotyczy * @param integer $idCustomerSender - parametr opcjonalny, id klienta (we frontend) który składa zlecenie */ public function __construct($eventCode, $eventMessage, $idBasicProduct = null, $idCustomerSender = null, $checkProductId = true) { parent::__construct($eventCode, $eventMessage); if ($idBasicProduct == '' && ($this->checkProductId && $checkProductId)) { throw new Logger_Exception('Nie podano parametru $idBasicProduct'); } if (!is_null($idBasicProduct)) { $this->addIdProduct($idBasicProduct); } if (!is_null($idCustomerSender)) { $this->setIdCustomerSender($idCustomerSender); $this->addIdCustomer($idCustomerSender); } }