如何通过Shell脚本调用公共静态成员方法(PHP类)?什么是“php”?


How to call a public static member method(PHP Class) through the Shell Script?And what is the "phpr"?

我读了一个shell脚本:

#!/bin/bash
function do_export{
      phpr Job_Sync_Third > /tmp/Job_Sync_Topoc.log 2>/dev/null
}
do_export

这段代码是为了调用类(Job_Sync_Third)的main函数。我通过"grep -rnw -e"命令找到了这个类。

下面是类:

require_once(xxxx);
class Job_Sync_Third
{
         protected $__config = array();
         public function run () {}
         static public function main()
         {
                 $job = new Job_Sync_Third();
                 $job->run();
         }
}

"phpr"调用Job_Sync_Third中的静态方法。它被安装在"/usr/bin"目录下。如何在shell脚本中调用类的静态成员函数?"phpr"是什么?我在Google上找不到任何有用的信息。

"phpr"可能是作者编译的解析器。