I can't get a peer review where I work, I was wondering how my code was and how could it be improved.
https://github.com/lamondea/uploader
Is it a good practice to use functions in classes or should it be replaced by external function that use the object returned by the class:
class _export
{
public $nbr;
public $file;
public function __construct($file,$nbr=0){
if($nbr != 0 && ($file->ext == 'jpg' || $file->ext == 'png' || $file->ext == 'gif'))
thumbnailer($file,$nbr);
else {
move_uploaded_file($file->tmp_name, ($file->loc).($file->name));
return $file->name;
}
}
}