|
@@ -19,10 +19,10 @@ class pics_item implements IUGContent
|
|
|
private $mTitle;
|
|
|
private $mImages;
|
|
|
|
|
|
- public function __construct($tite='')
|
|
|
+ public function __construct($content)
|
|
|
{
|
|
|
- $this->mTitle = $tite;
|
|
|
- $this->mImages = [];
|
|
|
+ $this->mTitle = $content['title'];
|
|
|
+ $this->mImages = $content['images'];
|
|
|
}
|
|
|
public function set_images($images)
|
|
|
{
|
|
@@ -38,35 +38,46 @@ class pics_item implements IUGContent
|
|
|
}
|
|
|
class text_item implements IUGContent
|
|
|
{
|
|
|
+ public function __construct($content)
|
|
|
+ {
|
|
|
+ }
|
|
|
function format()
|
|
|
{
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
class goods_item implements IUGContent
|
|
|
{
|
|
|
+ public function __construct($content)
|
|
|
+ {
|
|
|
+ }
|
|
|
function format()
|
|
|
{
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|
|
|
class voice_item implements IUGContent
|
|
|
{
|
|
|
+ public function __construct($content)
|
|
|
+ {
|
|
|
+ }
|
|
|
function format()
|
|
|
{
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
class vote_item implements IUGContent
|
|
|
{
|
|
|
+ public function __construct($content)
|
|
|
+ {
|
|
|
+ }
|
|
|
function format()
|
|
|
{
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
class question_item implements IUGContent
|
|
|
{
|
|
|
+ public function __construct($content)
|
|
|
+ {
|
|
|
+ }
|
|
|
function format()
|
|
|
{
|
|
|
|