Loader/CPsr4Autoloader.php 26

Type Line Description
26 instantiate the loader
29 register the autoloader
32 register the base directories for the namespace prefix
48 github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader-examples.md
91 normalize namespace prefix
94 normalize the base directory with a trailing separator
98 initialize the namespace prefix array
103 retain the base directory for the namespace prefix
124 the current namespace prefix
127 work backwards through the namespace names of the fully-qualified
128 class name to find a mapped file name
132 retain the trailing namespace separator in the prefix
135 the rest is the relative class name
138 try to load a mapped file for the prefix and relative class
145 remove the trailing namespace separator for the next iteration
146 of strrpos()
150 try to load a mapped file for the default prefix and relative class
156 never found a mapped file
173 are there any base directories for this namespace prefix?
178 look through base directories for this namespace prefix
180 replace the namespace prefix with the base directory,
181 replace namespace separators with directory separators
182 in the relative class name, append with .php
190 if the mapped file exists, require it
192 yes, we're done
197 never found it

Log/CLogger.php 5

Type Line Description
17 github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
42 production, development or debug
61 Report all type of errors
62 Display all errors
63 Do not buffer output

TConfigure.php 1

Type Line Description
16 Store all config as an array

View/CViewContainerBasic.php 3

Type Line Description
19 Array for all views
20 Template file suffix
21 Base path for views

View/CViewBasic.php 4

Type Line Description
19 Template file or array
20 Data to send to template file
21 For sorting views
22 Type of view

DI/TInjectable.php 1

Type Line Description
15 the service container

DI/CDI.php 7

Type Line Description
17 Store all lazy loaded services, ready to be instantiated
18 A service is instantiated into this array, once its accessed
103 Is the service active?
111 Is the service loaded?
181 Load by calling a function
191 Load by pre-instantiated object
195 Load by creating a new object from class-string

MVC/CDispatcherBasic.php 5

Type Line Description
19 Name of controller
20 Actual controller
21 Name of action
22 Params
144 $isCallable = is_callable($handler);

HTMLForm/FormController.php 2

Type Line Description
22 Will load the session service which also starts the session
52 Check the status of the form

MVC/ErrorController.php 1

Type Line Description
32 Key being integer also (unintentionally) prevents this action from direct url usage

DI/TInjectionAware.php 1

Type Line Description
15 the service container

ThemeEngine/CThemeBasic.php 6

Type Line Description
20 Array with variables to provide to template files.
126 Prepare details
132 Include theme specific functions file
138 Create views for regions, from config-file
145 Sen response headers, if any.
148 Create a view to execute the default template file

Response/CResponseBasic.php 1

Type Line Description
17 Set all headers to send

DI/CDIArray.php 1

Type Line Description
15 Store all configuration options here

Request/CRequestBasic.php 20

Type Line Description
17 Request URI from $_SERVER
18 Scriptname from $_SERVER, actual scriptname part
19 Scriptname from $_SERVER, path-part
21 The route
22 The route as an array
25 Current url
26 Url to this site, http://dbwebb.se
27 Url to root dir, siteUrl . /some/installation/directory/
29 Mapped to $_SERVER
30 Mapped to $_GET
31 Mapped to $_POST
75 The route and its parts
78 Prepare to create siteUrl and baseUrl by using currentUrl
81 {$parts['host']}" . (isset($parts['port'])
163 Compare REQUEST_URI and SCRIPT_NAME as long they match,
164 leave the rest as current request.
174 Does the request start with script-name - remove it.
184 Remove the ?-part from the query when analysing controller/metod/arg1/arg2
194 var_dump($route);
221 ';

Route/CRouteBasic.php 3

Type Line Description
16 A name for this route
17 The rule for this route
18 The controller action to handle this route

Navigation/CNavbar.php 14

Type Line Description
22 dbwebb.se/coachen/skapa-en-dynamisk-navbar-meny-med-undermeny-via-php
26 Keep default options in an array and merge with incoming options that can override the defaults.
37 Create the ul li menu from the array, use an anonomous recursive function that returns an
38 array of values.
46 has submenu, call recursivly and keep track on if the submenu has a selected item in it.
57 Check if the current menuitem is selected
62 Check if the menuitem is a parent of current page, /controller for /controller/action
70 Is there a class set for this item, then use it
75 Prepare the class-attribute, if used
80 Add the menu item
84 To remember there is selected children when going up the menu hierarchy
90 Return the menu
94 Call the anonomous function to create the menu, and submenues if any.
98 Set the id & class element, only if it exists in the menu-array

functions.php 7

Type Line Description
25 www.php.net/manual/en/function.usort.php#38827
35 Arrays of size < 2 require no action.
37 Split the array in half
41 Recurse to sort the two halves
44 If all of $array1 is <= all of $array2, just append them.
49 Merge the two sorted arrays into a single sorted array
59 Merge the remainder

Route/CRouterBasic.php 9

Type Line Description
19 All the routes
20 All internal routes
21 A default rout to catch all
39 Set as default route
99 Match predefined routes
106 Default handling route as :controller/:action/:params using the dispatcher
127 Use the "catch-all" route
132 No route was matched
137 Exception codes can match a route for a http status code

autoload.php 12

Type Line Description
22 Maybe just use the CLoader-class and put loader code into it?
29 www.php-fig.org/psr/psr-0/
57 www.php-fig.org/psr/psr-4/
63 project-specific namespace prefix
66 base directory for the namespace prefix
69 does the class use the namespace prefix?
72 no, move to the next registered autoloader
76 get the relative class name
79 replace the namespace prefix with the base directory, replace namespace
80 separators with directory separators in the relative class name, append
81 with .php
84 if the file exists, require it

Url/CUrl.php 20

Type Line Description
16 controller/action/param1/param2
17 index.php/controller/action/param1/param2
19 What type of urls to generate
21 Siteurl to prepend to all absolute urls created
22 Baseurl to prepend to all relative urls created
23 Name of the frontcontroller script
26 Siteurl to prepend to all absolute urls for assets
27 Baseurl to prepend to all relative urls for assets
43 Empty uri means baseurl
49 " || substr($uri, 0, 2) == "//") {
51 Fully qualified, just leave as is.
56 Absolute url, prepend with siteUrl
83 Empty uri means baseurl
86 " || substr($uri, 0, 2) == "//") {
88 Fully qualified, just leave as is.
93 Absolute url, prepend with siteUrl
115 Allow empty
117 " || substr($uri, 0, 2) == "//") {
119 Fully qualified, just leave as is.
124 Absolute url, prepend with staticSiteUrl

Content/CTextFilter.php 7

Type Line Description
26 Define all valid filters with their callback function.
35 Make an array of the comma separated string $filters
38 For each filter, call its function with the $text as parameter.
60 dbwebb.se/coachen/reguljara-uttryck-i-php-ger-bbcode-formattering
94 dbwebb.se/coachen/lat-php-funktion-make-clickable-automatiskt-skapa-klickbara-lankar
99 [^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/))#',
116 dbwebb.se/coachen/skriv-for-webben-med-markdown-och-formattera-till-html-med-php