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

Function cmsPageGet

Arguments

      $languageCode = string              // response will be prepare in this language ( eg. 'pl', 'en', 'de' ... )
                                          // empty value means default language defined in API config
      $parameters = array(

        [ 'id' ] = array() ;              // page Id

        [ 'getDictionary' ] = bool ;      // żądanie zwrócenia słowników dla encji Page ( true | false ) domyślnie false
        [ 'getTranslations' ] = bool ;    // żądanie zwrócenia translacji dla encji Page ( true | false ) domyślnie false
  
      )
      

Returns

Status information and list of records.
  Array (
    [ 'status' ] = 'OK',
    [ 'fields' ] = Array(
                     // page data,
                  )

    [dictionary] => Array (
                     optionally dictionary
                   )
    [selectedLanguageCode] => [languageCode]
    [translations] => Array(
                        optionally translations
                      )
  )

Example


  require_once ( 'classUddsOx.php' ) ;

  $udds = new classUddsOx ;
  $udds->customerCode = $srvCustomerCode ;
  $udds->login = $srvlogin ;
  $udds->password = $srvPassword ;
  $udds->serverUrl = $srvUrl ;
  
  $udds->languageCode = 'pl' ;
  $myParams = array() ;
  $myParams [ 'id' ] = '00000003551753887525HNB077P81L6Y' ;      
  $myParams [ 'getDictionary' ] = true  ;
  $myParams [ 'getTranslations' ] = true  ;
  
  $ret = $udds->cmsPageGet ( $myParams ) ;


Returns $ret =
Array ( [status] => OK [fields] => Array ( [id] => 00000003551753887525HNB077P81L6Y [languageCode] => default [name] => Panel agenta [title] => Panel agenta [content] => login.html [group1] => OX Menu dolne [group2] => Menu dolne [type] => link [status] => visible [order] => 30000 [linkTarget] => [linkStyle] => [linkParameters] => [linkShort] => [metaTitle] => [metaDescription] => [metaKeywords] => [extraText1] => [extraText2] => [alternativeTemplate] => [sysInsertIdPerson] => 1 [sysInsertDate] => 2019-10-18 [sysInsertTime] => 19:09:46 [sysModifyIdPerson] => 21 [sysModifyDate] => 2019-11-28 [sysModifyTime] => 15:47:17 [sysIdCompany] => [sysSource] => [sysIdSource] => [sysChange] => ) [dictionary] => Array ( [status] => Array ( [0] => visible [1] => hidden ) [type] => Array ( [0] => link [1] => subpage [2] => php ) [linkTarget] => Array ( [0] => currentWindow [1] => newWindow ) ) [selectedLanguageCode] => pl [translations] => Array ( [general] => Array ( [txtYes] => Tak [txtNo] => Nie [txtCancel] => txtCancel ) [list] => Array ( [entityName] => Lista podstron [fieldNames] => Array ( [sysInsertIdPerson] => sysInsertIdPerson [sysInsertDate] => sysInsertDate [sysInsertTime] => sysInsertTime [sysModifyIdPerson] => sysModifyIdPerson [sysModifyDate] => sysModifyDate [sysModifyTime] => sysModifyTime [sysIdCompany] => sysIdCompany [sysSource] => sysSource [sysIdSource] => sysIdSource [sysChange] => sysChange [id] => id [languageCode] => languageCode [name] => name [title] => title [content] => content [group1] => group1 [group2] => group2 [type] => type [status] => status [order] => order [linkTarget] => linkTarget [linkStyle] => linkStyle [linkParameters] => linkParameters [linkShort] => linkShort [metaTitle] => metaTitle [metaDescription] => metaDescription [metaKeywords] => metaKeywords [extraText1] => extraText1 [extraText2] => extraText2 [alternativeTemplate] => alternativeTemplate ) [buttons] => Array ( [btnInsert] => btnInsert [btnGet] => btnGet [btnDelete] => btnDelete [btnUpdate] => btnUpdate [btnRefresh] => btnRefresh [btnClose] => btnClose [btnSelect] => btnSelect ) [messages] => Array ( [askDeleteItem] => Czy chcesz usunąć podstronę [:details:] ? ) ) [details] => Array ( [entityName] => Lista podstron [fieldNames] => Array ( [sysInsertIdPerson] => sysInsertIdPerson [sysInsertDate] => sysInsertDate [sysInsertTime] => sysInsertTime [sysModifyIdPerson] => sysModifyIdPerson [sysModifyDate] => sysModifyDate [sysModifyTime] => sysModifyTime [sysIdCompany] => sysIdCompany [sysSource] => sysSource [sysIdSource] => sysIdSource [sysChange] => sysChange [id] => id [languageCode] => languageCode [name] => name [title] => title [content] => content [group1] => group1 [group2] => group2 [type] => type [status] => status [order] => order [linkTarget] => linkTarget [linkStyle] => linkStyle [linkParameters] => linkParameters [linkShort] => linkShort [metaTitle] => metaTitle [metaDescription] => metaDescription [metaKeywords] => metaKeywords [extraText1] => extraText1 [extraText2] => extraText2 [alternativeTemplate] => alternativeTemplate ) [buttons] => Array ( [btnSave] => btnSave [btnCancel] => btnCancel [btnClose] => btnClose ) [messages] => Array ( ) ) [fieldValues] => Array ( [status] => Array ( [visible] => visible [hidden] => hidden ) [linkTarget] => Array ( [currentWindow] => Bieżące okno [newWindow] => Nowe okno ) [type] => Array ( [link] => Link/url [subpage] => Podstrona [php] => Kod PHP ) ) ) [description] => Array ( [fieldTypes] => Array ( [sysInsertIdPerson] => Array ( [type] => integer [decimalPlaces] => 0 [divider] => 1 ) [sysInsertDate] => Array ( [type] => date [format] => yyyy-mm-dd ) [sysInsertTime] => Array ( [type] => time [format] => hh-mm-ss ) [sysModifyIdPerson] => Array ( [type] => integer [decimalPlaces] => 0 [divider] => 1 ) [sysModifyDate] => Array ( [type] => date [format] => YYYY-mm-dd ) [sysModifyTime] => Array ( [type] => time [format] => hh-mm-ss ) [sysIdCompany] => Array ( [type] => integer [decimalPlaces] => 0 [divider] => 1 ) [sysSource] => Array ( [type] => string [maxLength] => 32 ) [sysIdSource] => Array ( [type] => string [maxLength] => 32 ) [sysChange] => Array ( [type] => timestamp ) [id] => Array ( [type] => string [maxLength] => 32 ) [languageCode] => Array ( [type] => string [maxLength] => 6 ) [name] => Array ( [type] => string [maxLength] => 255 ) [title] => Array ( [type] => string [maxLength] => 255 ) [content] => Array ( [type] => string [maxLength] => 65535 ) [group1] => Array ( [type] => string [maxLength] => 128 ) [group2] => Array ( [type] => string [maxLength] => 128 ) [type] => Array ( [type] => string [maxLength] => 16 ) [status] => Array ( [type] => string [maxLength] => 16 ) [order] => Array ( [type] => integer [decimalPlaces] => 0 [divider] => 1 ) [linkTarget] => Array ( [type] => string [maxLength] => 32 ) [linkStyle] => Array ( [type] => string [maxLength] => 1024 ) [linkParameters] => Array ( [type] => string [maxLength] => 128 ) [linkShort] => Array ( [type] => string [maxLength] => 128 ) [metaTitle] => Array ( [type] => string [maxLength] => 512 ) [metaDescription] => Array ( [type] => string [maxLength] => 1024 ) [metaKeywords] => Array ( [type] => string [maxLength] => 1024 ) [extraText1] => Array ( [type] => string [maxLength] => 1024 ) [extraText2] => Array ( [type] => string [maxLength] => 1024 ) [alternativeTemplate] => Array ( [type] => string [maxLength] => 32 ) ) ) )