Update
This commit is contained in:
@@ -8,11 +8,13 @@
|
||||
namespace Bitrix\Main\UserConsent\Internals;
|
||||
|
||||
use Bitrix\Main\Application;
|
||||
use Bitrix\Main\Entity;
|
||||
use Bitrix\Main\Type\DateTime;
|
||||
use Bitrix\Main\Localization\Loc;
|
||||
use Bitrix\Main\Security\Random;
|
||||
use Bitrix\Main\UserConsent\Agreement;
|
||||
use Bitrix\Main\ORM\Data\DataManager;
|
||||
use Bitrix\Main\ORM\Event;
|
||||
use Bitrix\Main\ORM\EventResult;
|
||||
|
||||
Loc::loadMessages(__FILE__);
|
||||
|
||||
@@ -32,7 +34,7 @@ Loc::loadMessages(__FILE__);
|
||||
* @method static \Bitrix\Main\UserConsent\Internals\EO_Agreement wakeUpObject($row)
|
||||
* @method static \Bitrix\Main\UserConsent\Internals\EO_Agreement_Collection wakeUpCollection($rows)
|
||||
*/
|
||||
class AgreementTable extends Entity\DataManager
|
||||
class AgreementTable extends DataManager
|
||||
{
|
||||
/**
|
||||
* Get table name.
|
||||
@@ -120,15 +122,15 @@ class AgreementTable extends Entity\DataManager
|
||||
/**
|
||||
* After delete event handler.
|
||||
*
|
||||
* @param Entity\Event $event Event object.
|
||||
* @return Entity\EventResult
|
||||
* @param Event $event Event object.
|
||||
* @return EventResult
|
||||
*/
|
||||
public static function onAfterDelete(Entity\Event $event)
|
||||
public static function onAfterDelete(Event $event)
|
||||
{
|
||||
$result = new Entity\EventResult;
|
||||
$result = new EventResult;
|
||||
$data = $event->getParameters();
|
||||
|
||||
$sql = /** @lang MySQL */ "DELETE FROM " . ConsentTable::getTableName() . " WHERE AGREEMENT_ID = " . intval($data['primary']['ID']);
|
||||
$sql = "DELETE FROM " . ConsentTable::getTableName() . " WHERE AGREEMENT_ID = " . intval($data['primary']['ID']);
|
||||
Application::getConnection()->query($sql);
|
||||
|
||||
return $result;
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
*/
|
||||
namespace Bitrix\Main\UserConsent\Internals;
|
||||
|
||||
use Bitrix\Main\Entity;
|
||||
use Bitrix\Main\ORM\Fields\Relations\OneToMany;
|
||||
use Bitrix\Main\Type\DateTime;
|
||||
use Bitrix\Main\Localization\Loc;
|
||||
use Bitrix\Main\ORM\Data\DataManager;
|
||||
|
||||
Loc::loadMessages(__FILE__);
|
||||
|
||||
@@ -30,7 +30,7 @@ Loc::loadMessages(__FILE__);
|
||||
* @method static \Bitrix\Main\UserConsent\Internals\EO_Consent wakeUpObject($row)
|
||||
* @method static \Bitrix\Main\UserConsent\Internals\EO_Consent_Collection wakeUpCollection($rows)
|
||||
*/
|
||||
class ConsentTable extends Entity\DataManager
|
||||
class ConsentTable extends DataManager
|
||||
{
|
||||
/**
|
||||
* Get table name.
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
*/
|
||||
namespace Bitrix\Main\UserConsent\Internals;
|
||||
|
||||
use Bitrix\Main\Entity;
|
||||
use Bitrix\Main\Localization\Loc;
|
||||
use Bitrix\Main\ORM\Data\DataManager;
|
||||
|
||||
Loc::loadMessages(__FILE__);
|
||||
|
||||
@@ -28,7 +28,7 @@ Loc::loadMessages(__FILE__);
|
||||
* @method static \Bitrix\Main\UserConsent\Internals\EO_Field wakeUpObject($row)
|
||||
* @method static \Bitrix\Main\UserConsent\Internals\EO_Field_Collection wakeUpCollection($rows)
|
||||
*/
|
||||
class FieldTable extends Entity\DataManager
|
||||
class FieldTable extends DataManager
|
||||
{
|
||||
/**
|
||||
* Get table name.
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
*/
|
||||
namespace Bitrix\Main\UserConsent\Internals;
|
||||
|
||||
use Bitrix\Main\Entity;
|
||||
use Bitrix\Main\Localization\Loc;
|
||||
use Bitrix\Main\ORM\Fields\Relations\Reference;
|
||||
use Bitrix\Main\ORM\Query\Join;
|
||||
use Bitrix\Main\ORM\Data\DataManager;
|
||||
|
||||
Loc::loadMessages(__FILE__);
|
||||
|
||||
@@ -30,7 +30,7 @@ Loc::loadMessages(__FILE__);
|
||||
* @method static \Bitrix\Main\UserConsent\Internals\EO_UserConsentItem wakeUpObject($row)
|
||||
* @method static \Bitrix\Main\UserConsent\Internals\EO_UserConsentItem_Collection wakeUpCollection($rows)
|
||||
*/
|
||||
class UserConsentItemTable extends Entity\DataManager
|
||||
class UserConsentItemTable extends DataManager
|
||||
{
|
||||
/**
|
||||
* Get table name.
|
||||
|
||||
Reference in New Issue
Block a user