$this->categories = tx_dagoupost_lib::getCategories();
上記のコードの場合: getCategories()
static または not として宣言されているかどうかを確認するにはどうすればよいですか? 通常の関数を次のように呼び出すこともできるためtx_dagoupost_lib::getCategories();
、適切ではありませんが。これを使用できるようです: ReflectionMethod::isStatic
、しかし、使用方法がわかりません。ここには例がありません: http://php.net/manual/en/reflectionmethod.isstatic.php。getCategories()
静的関数かどうかを確認します。