Pimcore\Model\Document\Tag\Video::setDataFromResource PHP Метод

setDataFromResource() публичный Метод

См. также: Document\Tag\TagInterface::setDataFromResource
public setDataFromResource ( mixed $data )
$data mixed
    public function setDataFromResource($data)
    {
        if (!empty($data)) {
            $data = \Pimcore\Tool\Serialize::unserialize($data);
        }
        $this->id = $data["id"];
        $this->type = $data["type"];
        $this->poster = $data["poster"];
        $this->title = $data["title"];
        $this->description = $data["description"];
        return $this;
    }