/** * Implement the hook that is called when a property changes (from Wire) * * Alert the $pagefiles of the change * */ public function ___changed($what) { if (in_array($what, array('description', 'tags', 'file'))) { $this->set('modified', time()); $this->pagefiles->trackChange('item'); } parent::___changed($what); }