示例#1
0
 public function init()
 {
     parent::init();
     if ($this->item instanceof Tag) {
         $this->id = $this->item->id;
         $this->setAttributes($this->item->getAttributes());
         $this->setIsNewRecord($this->item->getIsNewRecord());
     }
 }