-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathccPageInterface.php
More file actions
26 lines (24 loc) · 930 Bytes
/
ccPageInterface.php
File metadata and controls
26 lines (24 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
//!namespace ccPhp\core;
/**
* This interface represents an object that can render a page, callable by the
* framework's dispatcher. Likely controllers will implement this interface and
* dispatch processing to their own methods or even other objects that implement
* this interface.
*
* @package ccPhp
*/
interface ccPageInterface
{
/**
* Display page content based on current request.
*
* @param ccRequest $request The request block containing properties related
* to the current page request.
* @return BOOL TRUE: Request handled (presumably, displayed); no further processing.
* FALSE: Request "not handled" (the dispatcher will try the next)
* A method can return FALSE if it a filter, of sorts.
* NULL: Not handled at all (e.g., no method)
*/
function render(ccRequest $request);
} // interface ccPageInterface