|
@@ -31,11 +31,13 @@ class pics_item implements IUGContent
|
|
|
public function add_image($image) {
|
|
|
$this->mImages[] = $image;
|
|
|
}
|
|
|
+
|
|
|
function format()
|
|
|
{
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
class text_item implements IUGContent
|
|
|
{
|
|
|
public function __construct($content)
|
|
@@ -107,6 +109,18 @@ class special_object
|
|
|
|
|
|
public function save()
|
|
|
{
|
|
|
+ $sp_id = $this->insert_special();
|
|
|
+ foreach ($this->contents as $item) {
|
|
|
+ $data = $item->format();
|
|
|
+ $this->insert_item($sp_id,$data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private function insert_special()
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ private function insert_item($data)
|
|
|
+ {
|
|
|
|
|
|
}
|
|
|
}
|