function ProductApp( $upload_path = '', $file_name = '' ) { $this->table = TB_PRODUCT; $this->upload_path = $upload_path == '' ? '../'.upload_path : $upload_path; $this->file_name = $file_name == '' ? 'product_photo-' : $file_name; $this->width_s = 133; $this->extension = array('jpg'); parent :: SQL(); parent :: commandTable($this->table); }