/**
  * @param $getListParams
  * @return array
  * @throws \Bitrix\Main\ArgumentException
  */
 public function getFromBase($getListParams)
 {
     $result = AccountsTable::getList($getListParams);
     return $result->fetchAll();
 }
示例#2
0
 /**
  * @throws ArgumentNullException
  */
 public function resetFinanceOperationsNum()
 {
     if (!$this->fields['ID']) {
         throw new ArgumentNullException('ID');
     }
     AccountsTable::update($this->fields['ID'], ['FINANCE_NUM' => 0]);
 }
示例#3
0
 public function uninstallDB()
 {
     Loader::includeModule($this->MODULE_ID);
     Application::getConnection(\Shantilab\YandexDirect\AccountsTable::getConnectionName())->queryExecute('drop table if exists ' . Base::getInstance('\\Shantilab\\YandexDirect\\AccountsTable')->getDBTableName());
     Option::delete($this->MODULE_ID);
 }