douhua9726 2012-09-10 00:30
浏览 51
已采纳

PHP是文件处理类的类图像调整大小组成?

Im planning to develop a file handling class, which performs nessary file operation , such as moving the file, ensuring the file type and size. And also an ImageResize class which resizes image to a specific width or height , or write watermark on the image. My question is , Is a Imageresize.php class composition of FileHandling.php . Which I mean you cannot perform ImageResize method without creating the object of filehandling.

  • 写回答

1条回答 默认 最新

  • douchun2158 2012-09-10 00:39
    关注

         Since the ImageResize class will need some methods from the FileHandling, and it's likely that you'll need more classes to work on various sections of the files, create the FileHandling as an interface, and let ImageResize class implement it. Other classes that require the FileHandling interface can also implement it when needed.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部