westdc-zf1/application/module/Westdc/Visual/Factory.php

35 lines
610 B
PHP

<?php
namespace Westdc\Visual;
class Factory
{
private $namespace_root = "\\Westdc\\Visual\\Reader\\";
function __construct()
{
}
static function Bootstrap($recordType)
{
$namespace_root = "\\Westdc\\Visual\\Reader\\";
$recordType = ucfirst($recordType);
$_class = $namespace_root . $recordType;
return new $_class;
}
static function Handle($recordType)
{
$namespace_root = "\\Westdc\\Visual\\Handle\\";
$recordType = ucfirst($recordType);
$_class = $namespace_root . $recordType . "Handle";
return new $_class;
}
}