Mediamanager\Controller\Mediamanager::writefile PHP Метод

writefile() защищенный Метод

protected writefile ( )
    protected function writefile()
    {
        $path = $this->param('path', false);
        $content = $this->param('content', false);
        $file = $this->root . '/' . trim($path, '/');
        $ret = false;
        if ($path && file_exists($file) && $content !== false) {
            $ret = file_put_contents($file, $content);
        }
        return json_encode(array("success" => $ret));
    }