@@ -8,7 +8,7 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | class CDIFactoryDocumentation extends CDIFactoryDefault |
| 10 | 10 | { |
| 11 | - /** |
|
| 11 | + /** |
|
| 12 | 12 | * Construct. |
| 13 | 13 | * |
| 14 | 14 | */ |
@@ -184,12 +184,12 @@ discard block |
||
| 184 | 184 | |
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | - * Init shortcode handling by preparing the option list to an array, for those using arguments. |
|
| 188 | - * |
|
| 189 | - * @param string $options for the shortcode. |
|
| 190 | - * |
|
| 191 | - * @return array with all the options. |
|
| 192 | - */ |
|
| 187 | + * Init shortcode handling by preparing the option list to an array, for those using arguments. |
|
| 188 | + * |
|
| 189 | + * @param string $options for the shortcode. |
|
| 190 | + * |
|
| 191 | + * @return array with all the options. |
|
| 192 | + */ |
|
| 193 | 193 | protected static function shortCodeInit($options) |
| 194 | 194 | { |
| 195 | 195 | preg_match_all('/[a-zA-Z0-9]+="[^"]+"|\S+/', $options, $matches); |
@@ -299,12 +299,12 @@ discard block |
||
| 299 | 299 | |
| 300 | 300 | |
| 301 | 301 | /** |
| 302 | - * Shortcode for adding RELURL to links. |
|
| 303 | - * |
|
| 304 | - * Usage example: [RELURL] |
|
| 305 | - * |
|
| 306 | - * @return array with all the options. |
|
| 307 | - */ |
|
| 302 | + * Shortcode for adding RELURL to links. |
|
| 303 | + * |
|
| 304 | + * Usage example: [RELURL] |
|
| 305 | + * |
|
| 306 | + * @return array with all the options. |
|
| 307 | + */ |
|
| 308 | 308 | protected function shortCodeAsset() |
| 309 | 309 | { |
| 310 | 310 | return $this->di->url->asset() . "/"; |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | { |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | - * Properties |
|
| 14 | - * |
|
| 15 | - */ |
|
| 13 | + * Properties |
|
| 14 | + * |
|
| 15 | + */ |
|
| 16 | 16 | private $name; // A name for this route |
| 17 | 17 | private $rule; // The rule for this route |
| 18 | 18 | private $action; // The controller action to handle this route |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | |
| 16 | - /** |
|
| 16 | + /** |
|
| 17 | 17 | * Display a page for a HTTP status code. |
| 18 | 18 | * |
| 19 | 19 | * @param string code status code to set the http header. |
@@ -11,9 +11,9 @@ |
||
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | - * Properties |
|
| 15 | - * |
|
| 16 | - */ |
|
| 14 | + * Properties |
|
| 15 | + * |
|
| 16 | + */ |
|
| 17 | 17 | private $headers; // Set all headers to send |
| 18 | 18 | |
| 19 | 19 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | |
| 18 | 18 | |
| 19 | - /** |
|
| 19 | + /** |
|
| 20 | 20 | * Set a message. |
| 21 | 21 | * |
| 22 | 22 | * @param string a message. |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | |
| 32 | 32 | |
| 33 | - /** |
|
| 33 | + /** |
|
| 34 | 34 | * Get the message. |
| 35 | 35 | * |
| 36 | 36 | * @return void |
@@ -11,9 +11,9 @@ |
||
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | - * Properties |
|
| 15 | - * |
|
| 16 | - */ |
|
| 14 | + * Properties |
|
| 15 | + * |
|
| 16 | + */ |
|
| 17 | 17 | private $requestUri; // Request URI from $_SERVER |
| 18 | 18 | private $scriptName; // Scriptname from $_SERVER, actual scriptname part |
| 19 | 19 | private $path; // Scriptname from $_SERVER, path-part |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | // Prepare the page content |
| 13 | 13 | $app->theme->setVariable('title', "Hello World Pagecontroller") |
| 14 | - ->setVariable('main', " |
|
| 14 | + ->setVariable('main', " |
|
| 15 | 15 | <h1>Hello World Pagecontroller</h1> |
| 16 | 16 | <p>This is a sample pagecontroller that shows how to use Anax.</p> |
| 17 | 17 | "); |
@@ -42,8 +42,8 @@ |
||
| 42 | 42 | // Prepare the page content |
| 43 | 43 | |
| 44 | 44 | $app->theme->addStylesheet("css/dice.css") |
| 45 | - ->setVariable('title', "Throw a dice") |
|
| 46 | - ->setVariable('main', " |
|
| 45 | + ->setVariable('title', "Throw a dice") |
|
| 46 | + ->setVariable('main', " |
|
| 47 | 47 | <h1>Throw a dice</h1> |
| 48 | 48 | <p>This is a sample pagecontroller showing how to use <i>application specific modules</i> in a pagecontroller.</p> |
| 49 | 49 | <p>How many rolls do you want to do, <a href='?roll=1'>1 roll</a>, <a href='?roll=3'>3 rolls</a> or <a href='?roll=6'>6 rolls</a>? </p> |