UDDS OX API - documentation ver.2.5 (2023-04-07) ( www.dlaoperatora.pl )

Function cmsPageUpdate

Arguments

      $parameters = array(
        [ 'items' ] = array (             // list of items and data to update
          [0] => Array (
            [languageCode] => ''          // ( 'pl' | 'de' | 'en' ... )
            [name] => ''                  
            [title] => ''
            [content] => ''
            [group1] => ''
            [group2] => ''
            [type] => 'subpage' | 'link' | 'php'
            [status] => 'visible' | 'hidden'
            [order] => 0
            [linkTarget] => 'currentWinfow' | 'newWindow'
            [linkStyle] => ''
            [linkParameters] => ''
            [linkShort] => ''
            [metaTitle] => ''
            [metaDescription] => ''
            [metaKeywords] => ''
            [extraText1] => ''
            [extraText2] => ''
            [alternativeTemplate] => ''
            [sysIdCompany] => ''
            [sysSource] => ''
            [sysIdSource] => ''
          )
          [1] => Array (
            ...
          )
          ...
        )
      )
    

Returns

Status information and list of records.
  Array (
    [ 'status' ] = 'OK',
    [ 'rowsAffectedList' ] = Array (
      list of update status => true | false ( 0 | 1 )
    )

Example


  require_once ( 'classUddsOx.php' ) ;

  $udds = new classUddsOx ;
  $udds->customerCode = $srvCustomerCode ;
  $udds->login = $srvlogin ;
  $udds->password = $srvPassword ;
  $udds->serverUrl = $srvUrl ;
  
  $myParams = array() ;
  $myParams ['items'] = Array (
      
    '0' => Array (
      'id' => 'BFSJOPUYYQRYKZVHYFUAXWLFFXZQUWCH',
      'languageCode' => 'pl',
      'name' => 'UPD 1 test subpage',
      'title' => 'Full test subpage title',
      'content' => 'Any HTML content',
      'group1' => 'testGroup1',
      'group2' => 'testGroup2',
      'type' => 'subpage',
      'status' => 'visible',
      'order' => 1,
      'linkTarget' => 'currentWindow',
      'linkStyle' => 'color:red;',
      'linkParameters' => '',
      'linkShort' => 'test-short-link-1',
      'metaTitle' => 'My test subpage',
      'metaDescription' => 'Any description subpage',
      'metaKeywords' => 'Test'
    ),

    '1' => Array (
      'id' => 'IACGLKYAVEQZHLJHOGJQWUOFODGWMALK',
      'languageCode' => 'pl',
      'name' => 'UPD 2 Second test subpage',
      'title' => 'Second test subpage title',
      'content' => 'http://www.dlaoperatora.pl/',
      'group1' => 'testGroup1',
      'group2' => 'testGroup2',
      'type' => 'link',
      'status' => 'visible',
      'order' => 1,
      'linkTarget' => 'currentWindow',
      'linkStyle' => 'color:red;',
      'linkParameters' => '',
      'linkShort' => '',
      'metaTitle' => 'My test subpage',
      'metaDescription' => 'Any description subpage',
      'metaKeywords' => 'Test'
    )

  );

  $ret = $udds->cmsPageUpdate ( $myParams ) ; // write function disabled in example


Returns $ret =
Array ( [rowsAffectedList] => Array ( [0] => 0 [1] => 0 ) [status] => OK )