Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 function content_store($data)
 {
     return so_content::make(so_page::make($data));
 }