IRoute¶
-
interface
OCP\Route\
IRoute
¶ - Interface IRoute
Implemented by: OC\Route\Route
Source: lib/public/Route/IRoute.php#34
Methods¶
-
public
OCP\Route\IRoute::
patch
()¶ - Specify PATCH as the method to use with this route
Source: lib/public/Route/IRoute.php#40 Returns: \OCP\Route\IRoute
Since: 7.0.0
-
public
OCP\Route\IRoute::
method
($method)¶ - Specify the method when this route is to be used
Source: Parameters: - $method (string) HTTP method (uppercase)
Returns: Since: 7.0.0
-
public
OCP\Route\IRoute::
actionInclude
($file)¶ - The action to execute when this route matches, includes a file likeit is called directly
Source: Parameters: - $file (string)
Returns: void
Since: 7.0.0
-
public
OCP\Route\IRoute::
get
()¶ - Specify GET as the method to use with this route
Source: lib/public/Route/IRoute.php#66 Returns: \OCP\Route\IRoute
Since: 7.0.0
-
public
OCP\Route\IRoute::
post
()¶ - Specify POST as the method to use with this route
Source: lib/public/Route/IRoute.php#73 Returns: \OCP\Route\IRoute
Since: 7.0.0
-
public
OCP\Route\IRoute::
delete
()¶ - Specify DELETE as the method to use with this route
Source: lib/public/Route/IRoute.php#80 Returns: \OCP\Route\IRoute
Since: 7.0.0
-
public
OCP\Route\IRoute::
action
($class, $function=null)¶ - The action to execute when this route matches
Source: Parameters: - $class (string | callable) the class or a callable
- $function (string) the function to use with the class
Returns: \OCP\Route\IRoute
This function is called with $class set to a callable or to the class with $functionSince: 7.0.0
-
public
OCP\Route\IRoute::
defaults
($defaults)¶ - Defaults to use for this route
Source: Parameters: - $defaults (array) The defaults
Returns: Since: 7.0.0
-
public
OCP\Route\IRoute::
requirements
($requirements)¶ - Requirements for this route
Source: Parameters: - $requirements (array) The requirements
Returns: Since: 7.0.0
-
public
OCP\Route\IRoute::
put
()¶ - Specify PUT as the method to use with this route
Source: lib/public/Route/IRoute.php#118 Returns: \OCP\Route\IRoute
Since: 7.0.0