Changeset View
Changeset View
Standalone View
Standalone View
modules/in-auction/units/sections/ebay_eh.php
Show All 39 Lines | |||||
$this->permMapping = array_merge($this->permMapping, $permissions); | $this->permMapping = array_merge($this->permMapping, $permissions); | ||||
} | } | ||||
/** | /** | ||||
* [HOOK] Creates fields for products List | * [HOOK] Creates fields for products List | ||||
* | * | ||||
* @param kEvent $event | * @param kEvent $event | ||||
*/ | */ | ||||
function OnAfterProductConfigRead($event) | protected function OnModifyProductsConfig(kEvent $event) | ||||
{ | { | ||||
$a_fields = $this->Application->getUnitOption($event->MasterEvent->Prefix, 'Fields'); | $a_fields = $this->Application->getUnitOption($event->MasterEvent->Prefix, 'Fields'); | ||||
$a_fields['LastListingId'] = array( | $a_fields['LastListingId'] = array( | ||||
'type' => 'int', | 'type' => 'int', | ||||
'default' => 0, | 'default' => 0, | ||||
'not_null' => 1, | 'not_null' => 1, | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | |||||
$this->Application->setUnitOption($event->MasterEvent->Prefix, 'EditTabPresets', $edit_tab_presets); | $this->Application->setUnitOption($event->MasterEvent->Prefix, 'EditTabPresets', $edit_tab_presets); | ||||
} | } | ||||
/** | /** | ||||
* [HOOK] Adds new tab to category editing template | * [HOOK] Adds new tab to category editing template | ||||
* | * | ||||
* @param kEvent $event | * @param kEvent $event | ||||
*/ | */ | ||||
function OnAfterCategoryConfigRead($event) | protected function OnModifyCategoriesConfig(kEvent $event) | ||||
{ | { | ||||
$edit_tab_presets = $this->Application->getUnitOption($event->MasterEvent->Prefix, 'EditTabPresets'); | $edit_tab_presets = $this->Application->getUnitOption($event->MasterEvent->Prefix, 'EditTabPresets'); | ||||
$edit_tab_presets['Default']['ebay'] = Array ( | $edit_tab_presets['Default']['ebay'] = Array ( | ||||
'title' => 'la_tab_eBay', 't' => 'in-auction/categories/categories_edit_ebay', 'priority' => 8 | 'title' => 'la_tab_eBay', 't' => 'in-auction/categories/categories_edit_ebay', 'priority' => 8 | ||||
); | ); | ||||
$this->Application->setUnitOption($event->MasterEvent->Prefix, 'EditTabPresets', $edit_tab_presets); | $this->Application->setUnitOption($event->MasterEvent->Prefix, 'EditTabPresets', $edit_tab_presets); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 3737 Lines • ▼ Show 20 Line(s) | |||||
function AcceptKey($mode, $key) | function AcceptKey($mode, $key) | ||||
{ | { | ||||
$sql = 'UPDATE '.TABLE_PREFIX.'SystemSettings | $sql = 'UPDATE '.TABLE_PREFIX.'SystemSettings | ||||
SET VariableValue = HEX(AES_ENCRYPT(\''.$this->Application->GetVar($mode.'_'.$key).'\',\''.EBAY_CRYPT_KEY.DOMAIN.'\')) | SET VariableValue = HEX(AES_ENCRYPT(\''.$this->Application->GetVar($mode.'_'.$key).'\',\''.EBAY_CRYPT_KEY.DOMAIN.'\')) | ||||
WHERE VariableName =\'eBay_'.$mode.'_'.$key.'\''; | WHERE VariableName =\'eBay_'.$mode.'_'.$key.'\''; | ||||
$this->Conn->Query($sql); | $this->Conn->Query($sql); | ||||
} | } | ||||
} | } | ||||
No newline at end of file |