SHARE
TWEET

Untitled

SpeakeazyYT Jul 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     foreach($array_sections as $section) {
  2.         $sectionObject = new CIBlockSection;
  3.  
  4.         $sectionId = $sectionObject->Add([
  5.             'IBLOCK_ID' => $iblock_id,
  6.             'IBLOCK_SECTION_ID' => '',
  7.             "NAME" => $section['NAME'],
  8.             "CODE" => $section['CODE'].'_non',
  9.         ]);
  10.  
  11.         if($sectionId > 0){
  12.             $sectionObject->Update($sectionId, [
  13.                 'IBLOCK_ID' => $iblock_id,
  14.                 'IBLOCK_SECTION_ID' => '',
  15.                 "NAME" => $section['NAME'],
  16.                 "CODE" => $section['CODE'].'_non',
  17.             ]);
  18.         };
  19.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top