Unnamed Fossil Project

Check-in [957d8787c3]
Login

Check-in [957d8787c3]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Serializace.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 957d8787c337a89b6f178c7ccbc5e560258ecc5f
User & Date: Spravce 2013-04-06 14:38:42.640
Context
2013-04-07
15:13
Zaloha pred pejskem. Move to sourceMakeup. Leaf check-in: e934a7b77e user: Hry tags: trunk
2013-04-06
14:38
Serializace. check-in: 957d8787c3 user: Spravce tags: trunk
2013-03-30
13:47
Fatal handling. check-in: e9c0f864af user: Spravce tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to brickyard.nw.
230
231
232
233
234
235
236


237
238
239
240
241
242
243
<<defaults>>==
public $inDevelMode = false;
public $router = null;
public $view = null;
public $logger = null;
public $libPath = '.';
public $indexPath = '.';


@

Some default instances are created in constructor.

<<defaults>>==
public function __construct(){
	$this->router = new brickyard_router_default;







>
>







230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<<defaults>>==
public $inDevelMode = false;
public $router = null;
public $view = null;
public $logger = null;
public $libPath = '.';
public $indexPath = '.';
protected $_service = array();
protected $_serviceIsFactory = array();
@

Some default instances are created in constructor.

<<defaults>>==
public function __construct(){
	$this->router = new brickyard_router_default;
309
310
311
312
313
314
315



















316
317
318
319
320
321
322

<<setters>>==
public function setIndexPath($indexFilePath)
{
	$this->indexPath = dirname($indexFilePath);
}
@




















###Brickyard class definition

<<class brickyard>>==
class brickyard
{
	<<defaults>>







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343

<<setters>>==
public function setIndexPath($indexFilePath)
{
	$this->indexPath = dirname($indexFilePath);
}
@

###Dependency injection container

Today unexplained.

<<dic>>==
public function getService($name)
{
	if (isset($this->_service[$name])) {
		if (isset($this->_serviceIsFactory[$name])) {
			return call_user_func($this->_service[$name]);
		} else {
			return $this->_service[$name];
		}
	} else {
		throw new Exception(sprintf("Service '%s' not found!", $name));
	}
}
@

###Brickyard class definition

<<class brickyard>>==
class brickyard
{
	<<defaults>>