[EXTENSION] CFile
#1
Posted 25 October 2009 - 01:41 AM
http://www.yiiframew...extension/cfile
This topic is for your feedback. You're welcome.
#2
Posted 26 October 2009 - 04:47 AM
- new: getContents() and setContents() methods
- new: create() method
- new: 'readable' & 'writeable' properties
- fix: posix family functions existance check (in getOwner() & getGroup())
http://www.yiiframew...extension/cfile
#5
Posted 27 October 2009 - 03:19 AM
- new: setBasename() method (lazy file rename)
- new: setFilename() method (lazy file rename)
- new: setExtension() method (lazy file rename)
- new: download() method
- chg: copy() & rename() methods improved (destination file name without path is enough for them to perform actions in the current file directory)
- fix: 'extension' key existance check (in pathInfo())
http://www.yiiframew...xtension/cfile/
#6
Posted 27 October 2009 - 04:13 AM
#7
Posted 27 October 2009 - 04:28 AM
Mike, on 27 October 2009 - 04:13 AM, said:
Probably something like "fetch()" would make sense in that case, I believe. What do you think?
#8
Posted 27 October 2009 - 04:36 AM
#9
Posted 03 November 2009 - 02:49 AM
- new: 'isFile' & 'isDir' properties
- new: rename(), move(), copy(), delete(), getSize() and getContents() methods now are able to deal with directories
- new: purge() method to empty filesystem object
- new: createDir() method to create directory
- new: 'isEmpty' property
- chg: '$formatPrecision' param of getSize() method now changed to '$format' and accepts format pattern for 'CNumberFormatter'
- chg: download() method is now alias for primary send() method
- chg: now 'readable' & 'writeable' properties are loaded on set() even when in non-greedy mode
- fix: unnecessary file availability checks when 'greedy' option is specified for set() removed
http://www.yiiframew...xtension/cfile/
#10
Posted 03 November 2009 - 06:38 AM
Mike, on 27 October 2009 - 04:13 AM, said:
Sendfile is a name for this, and it describes exactly what the application is doing. (EDIT: But would probably be confused with X-SENDFILE which is different).
This post has been edited by datashaman: 03 November 2009 - 06:55 AM
#11
Posted 03 November 2009 - 08:21 AM
#13
Posted 03 November 2009 - 10:32 AM
idle sign, on 03 November 2009 - 10:07 AM, said:
http://www.yiiframew...s-naming-why-e/
Read the qiang message
#14
Posted 03 November 2009 - 10:33 AM
Quote
#15
Posted 03 November 2009 - 11:24 AM
ekerazha, on 03 November 2009 - 10:32 AM, said:
Y!!, on 03 November 2009 - 10:33 AM, said:
I see, yes, thank you.
I suppose if this is a discourage as such it should rather be stated in Yii Conventions, not as a Tip or forum message.
But I'll bear it in mind.
#17
Posted 03 November 2009 - 10:43 PM
Mike, on 03 November 2009 - 11:38 AM, said:
I think so
http://www.yiiframew...sics.convention
#19
Posted 17 November 2009 - 01:58 PM
Also, can I please request a feature? I would like a way to be able to use:
Yii::app()->file->set('/files/')->contentsTo only display the files/folders in the current folder (ie. non-recursive).
Thanks.

Help















