$parameters = array( [ 'items' ] = array ( // list of items to insert [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 ( ... ) ... ) )
Array ( [ 'status' ] = 'OK', [ 'idList' ] = Array ( list of identifiers )
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 [ 'items' ] = Array ( [0] => Array ( [languageCode] => 'pl', [name] => '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 ( [languageCode] => 'pl', [name] => '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] => 'test-short-link-1', [metaTitle] => 'My test subpage', [metaDescription] => 'Any description subpage', [metaKeywords] => 'Test' ) ); $ret = $udds->cmsPageInsert ( $myParams ) ;
Returns $ret =
Array ( [idList] => Array ( [0] => BFSJOPUYYQRYKZVHYFUAXWLFFXZQUWCH [1] => IACGLKYAVEQZHLJHOGJQWUOFODGWMALK ) [status] => OK )