2014-05-21 09:26:15 +00:00
|
|
|
<?php
|
2014-05-12 06:53:21 +00:00
|
|
|
namespace Westdc\Visual;
|
|
|
|
|
|
|
|
class Factory
|
|
|
|
{
|
2014-05-21 09:26:15 +00:00
|
|
|
private $namespace_root = "\\Westdc\\Visual\\Reader\\";
|
2014-05-12 06:53:21 +00:00
|
|
|
|
|
|
|
function __construct()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static function Bootstrap($recordType)
|
|
|
|
{
|
2014-05-21 09:26:15 +00:00
|
|
|
$namespace_root = "\\Westdc\\Visual\\Reader\\";
|
2014-05-12 06:53:21 +00:00
|
|
|
|
|
|
|
$recordType = ucfirst($recordType);
|
|
|
|
|
|
|
|
$_class = $namespace_root . $recordType;
|
|
|
|
|
|
|
|
return new $_class;
|
|
|
|
}
|
|
|
|
|
|
|
|
static function Handle($recordType)
|
|
|
|
{
|
2014-05-21 09:26:15 +00:00
|
|
|
$namespace_root = "\\Westdc\\Visual\\Handle\\";
|
2014-05-12 06:53:21 +00:00
|
|
|
|
|
|
|
$recordType = ucfirst($recordType);
|
|
|
|
|
|
|
|
$_class = $namespace_root . $recordType . "Handle";
|
|
|
|
|
|
|
|
return new $_class;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|