Opened 2 years ago

Closed 2 years ago

#376 closed task (fixed)

ms4w 5beta2 - access to MAP/WEB/METADATA section

Reported by: supkam Owned by: Jeff McKenna
Priority: major Milestone: 5.0.0 release
Component: MS4W - Base Version:
Keywords: Cc: supkam, TC Haddad
Blocked By: Blocking:

Description

I downloaded the version https://ms4w.com/release/experimental/ms4w_5.0.0_beta2.zip.

But I can't access to MAP/WEB/METADATA section.

1) $oMap->getMetaData('wms_title'); with result Fatal error: Uncaught Error: Call to undefined method mapObj::getMetaData() in C:\ms4w\Apache\htdocs\quickmap.php

2) $oMap->metadata->get('wms_title'); with result Fatal error: Uncaught Error: Call to a member function get() on null in C:\ms4w\Apache\htdocs\quickmap.php

Change History (2)

comment:1 by Jeff McKenna, 2 years ago

Cc: TC Haddad added

comment:2 by Jeff McKenna, 2 years ago

Resolution: fixed
Status: newclosed

@supkam this was a good question. The correct way to access the WEB object metadata is now:

$oMap->web->metadata->get("wms_title");

I have updated the Migration Guide to mention this (https://ms4w.com/trac/wiki/MigrationGuide5.x) and I will send this note to the ms4w-users list.

Thanks. Closing.

Note: See TracTickets for help on using tickets.