function content_store($content) { so_content::ensure($content); if ((string) $content == $this->content) { return $content; } $file = $this->dir->createUniq($content->extension); $file->content = (string) $content; $this->version = $file->name; return $content; }
function content_store($data) { return so_content::make(so_page::make($data)); }