2016-09-14 77 views
2

我想email管statistique 这是我的代码:如何获取特定Beanstalkd管的统计信息?

$queue = new Phalcon\Queue\Beanstalk(array('host' => 'xxx.xx.x.x','port' => '11300')); 

$queue->choose('email'); 
$queue->watch('email'); 
$statTube=statsTube('email'); 

我试图通过remplace stats_tubestatsTube,但它不工作。

我有这样的错误:PHP Fatal error: Call to undefined function statsTube()

什么是我的错误?我不明白!

回答

0

从对象中调用它,因为它是类的一个方法。

$statTube=$queue->statsTube('email');