31 lines
577 B
PHP
31 lines
577 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Created by PhpStorm.
|
||
|
* User: Administrator
|
||
|
* Date: 2014/11/14
|
||
|
* Time: 11:43
|
||
|
*/
|
||
|
|
||
|
namespace Westdc\Service\ServiceAgent;
|
||
|
|
||
|
use Westdc\EventModel\ListenerFactory;
|
||
|
use Westdc\EventModel\HandleFactory;
|
||
|
|
||
|
class Event {
|
||
|
|
||
|
public function getListener($listenerName,$handleName = ""){
|
||
|
$ListenerFactory = new ListenerFactory();
|
||
|
if(empty($handleName))
|
||
|
{
|
||
|
$ListenerFactory->get($listenerName);
|
||
|
}else{
|
||
|
$ListenerFactory->get($listenerName,$handleName);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public function getHandle()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|