BcBaserHelper::__call PHP 메소드

__call() 공개 메소드

BcBaserHelper に存在しないメソッドが呼ばれた際、プラグインで定義された PluginBaserHelper のメソッドを呼び出す call__ から __call へメソット名を変更、Helper の __call をオーバーライド
public __call ( string $method, array $params ) : mixed
$method string メソッド名
$params array 引数
리턴 mixed PluginBaserHelper の戻り値
    public function __call($method, $params)
    {
        foreach ($this->_pluginBasers as $pluginBaser) {
            if (method_exists($pluginBaser, $method)) {
                return call_user_func_array(array($pluginBaser, $method), $params);
            }
        }
        return null;
    }