Controller_Data_Dumper::log PHP Метод

log() приватный Метод

private log ( $method, $args, $isCalling = true )
    private function log($method, $args, $isCalling = true)
    {
        $s = '';
        foreach ($args as $arg) {
            if ($arg instanceof AbstractObject) {
                $s .= ', ' . get_class($arg) . ' ' . $arg->short_name;
            } else {
                $s .= ', ' . $arg;
            }
        }
        $s = substr($s, 2);
        if ($isCalling) {
            $this->log[] = $this->watchedController->short_name . '::' . $method . " with ({$s})";
        } else {
            $this->log[] = $this->watchedController->short_name . '::' . $method . " return {$s}";
        }
    }