php: issue on how to check the static method? -


$this->categories = tx_dagoupost_lib::getcategories(); 

for above code: how find out wheather getcategories() declared staticor not? because can call normal function way: tx_dagoupost_lib::getcategories();, although not proper. seems can use one: reflectionmethod::isstatic, not know how use it, there no example here: http://php.net/manual/en/reflectionmethod.isstatic.php, can show me how check if getcategories() static function.

if through rest of reflection documentation, you'll see how reflectionmethod object:

$class = new reflectionclass('tx_dagoupost_lib'); $method = $class->getmethod('getcategories'); if ($method->isstatic()) {     ... } 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -