<?php class ImgUploader extends Uploader{ function __construct($dir = "uploadfiles/images/"){ parent::__construct($dir); $this->allowTypes = array("jpg", "jpeg", "png", "gif"); } }