'key', 'label' => 'string', 'sort' => 'int', 'type' => 'string', 'content' => 'longstring', 'sketch' => 'int' ); public function remove(){ Resource::deleteById($this->id); if($this->type == 'image' && file_exists(SKETCH_PATH.$this->content)) unlink(SKETCH_PATH.$this->content); } } ?>