$this->categories = tx_dagoupost_lib::getCategories();
对于上面的代码:我怎样才能找到getCategories()
声明为静态的wheather?因为我们也可以这样调用普通函数: tx_dagoupost_lib::getCategories();
,虽然它不正确。似乎我可以使用这个:ReflectionMethod::isStatic
,但我不知道如何使用它,这里没有示例:http: //php.net/manual/en/reflectionmethod.isstatic.php,所以任何人都可以告诉我如何检查是否getCategories()
是静态函数。