示例#1
0
 public function update($input = array(), $lang = null)
 {
     $data = $this->filterInput($input);
     $this->changes()->discard();
     parent::update($data, $lang);
     kirby()->trigger('panel.site.update', $this);
 }
示例#2
0
文件: site.php 项目: nsteiner/kdoc
 public function update($input = array(), $lang = null)
 {
     // keep the old state of the site object
     $old = clone $this;
     $data = $this->filterInput($input);
     $this->changes()->discard();
     parent::update($data, $lang);
     kirby()->trigger('panel.site.update', array($this, $old));
 }