filtro); } public function addExt($extension = '') { if ($extension != ''){ $this->filtro[] = json_decode('{"title":"Image files", "extensions":"gif"}', true); } return $this; } }