mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-13 10:09:27 +00:00
0bc0a09bf4
- application/extensions file system permission now is 775 - application/logs file system permission now is 775 - Added extensions directory in application/: config, controllers, helpers, hooks, libraries, models, views and widgets - Added view views/extensions/manage.php - Added controller controllers/system/extensions/Manager.php - Added library ExtensionsLib to manage extensions - Added model models/system/Extensions_model.php - Moved code related to print out info from MigrationLib to EPrintfLib
35 lines
487 B
PHP
35 lines
487 B
PHP
<?php
|
|
|
|
namespace Sabre\DAV;
|
|
|
|
class TestPlugin extends ServerPlugin {
|
|
|
|
public $beforeMethod;
|
|
|
|
function getFeatures() {
|
|
|
|
return array('drinking');
|
|
|
|
}
|
|
|
|
function getHTTPMethods($uri) {
|
|
|
|
return array('BEER','WINE');
|
|
|
|
}
|
|
|
|
function initialize(Server $server) {
|
|
|
|
$server->subscribeEvent('beforeMethod',array($this,'beforeMethod'));
|
|
|
|
}
|
|
|
|
function beforeMethod($method) {
|
|
|
|
$this->beforeMethod = $method;
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|