New io.File constructor variants

at 2008-03-24 in Announcements by friebe (0 comments)

Don't you just hate this:

<?php 
$f= new File($folder->getURI().DIRECTORY_SEPARATOR.$name);
?>
So did I:-)

Therefore, the io.File class now accepts the following signatures:
<?php 
// Works unaffected
$f= new File('/etc/passwd');

// New
$f= new File('/etc', 'passwd');
$f= new File(new Folder('/etc'), 'passwd');
?>
This will be available with the next XP release along with a bunch of other features!



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES

Related

Find related articles by a search for «New».