zoneclearFeedServer/src/Prepend.php

41 lines
854 B
PHP
Raw Normal View History

2015-04-25 19:25:03 +00:00
<?php
2023-10-14 13:41:43 +00:00
2023-05-07 22:40:58 +00:00
declare(strict_types=1);
namespace Dotclear\Plugin\zoneclearFeedServer;
2023-10-14 13:41:43 +00:00
use Dotclear\App;
2023-08-16 20:03:40 +00:00
use Dotclear\Core\Process;
2023-05-07 22:40:58 +00:00
/**
2023-10-14 13:41:43 +00:00
* @brief zoneclearFeedServer prepend class.
* @ingroup zoneclearFeedServer
*
* @author Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
2023-05-07 22:40:58 +00:00
*/
2023-08-16 20:03:40 +00:00
class Prepend extends Process
2023-05-07 22:40:58 +00:00
{
public static function init(): bool
{
2023-08-16 20:03:40 +00:00
return self::status(My::checkContext(My::PREPEND));
2023-05-07 22:40:58 +00:00
}
public static function process(): bool
{
2023-08-16 20:03:40 +00:00
if (!self::status()) {
2023-05-07 22:40:58 +00:00
return false;
}
// public url for page of description of the flux
2023-10-14 13:41:43 +00:00
App::url()->register(
2023-05-07 22:40:58 +00:00
'zoneclearFeedsPage',
'zcfeeds',
'^zcfeeds(.*?)$',
2023-10-14 13:41:43 +00:00
UrlHandler::zoneclearFeedsPage(...)
2023-05-07 22:40:58 +00:00
);
return true;
}
2021-11-06 15:30:19 +00:00
}