-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove webdav stuff. The webdav module will bring info via events.
Using the new metadata event, will allow any modules like webdav to provide metadata on the url /view/app/metadata. The webdav will also use the existing LizmapServerVersion event to show information on the server information panel.
- Loading branch information
Showing
5 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
/** | ||
* Event for metadata. | ||
* | ||
* @author 3liz | ||
* @copyright 2023 3liz | ||
* | ||
* @see http://3liz.com | ||
* | ||
* @license Mozilla Public License : http://www.mozilla.org/MPL/ | ||
*/ | ||
|
||
namespace Lizmap\Events; | ||
|
||
class LizmapMetadataEvent extends \jEvent | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct('LizmapMetadata'); | ||
$this->_responses = array( | ||
array(), | ||
); | ||
} | ||
|
||
/** | ||
* @param mixed $key | ||
* @param mixed $value | ||
*/ | ||
public function addMetadata($key, $value) | ||
{ | ||
$this->_responses[0][$key] = $value; | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getMetadata() | ||
{ | ||
return $this->_responses[0]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters