Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
commonaction.php
1<?php
9
12
14
15Loc::loadMessages(__FILE__);
16
21abstract class CommonAction
22{
23 const NAME = 'unknown';
24
30 public static function get()
31 {
32 return Controller\Action::create(static::NAME)->setHandler(array(get_called_class(), 'onRequest'));
33 }
34
42 public static function getRequestingUri($controllerUri, array $parameters = array())
43 {
44 return Controller\Manager::getActionRequestingUri(static::NAME, $parameters, $controllerUri);
45 }
46
53 public static function onRequest(HttpRequest $request, Controller\Response $response)
54 {
55
56 }
57}
static loadMessages($file)
Definition loc.php:64
static onRequest(HttpRequest $request, Controller\Response $response)
static getRequestingUri($controllerUri, array $parameters=array())