[Solar-talk] Re: Solar_Path_Stack: finding absolute paths
Paul M Jones
pmjones at ciaweb.net
Fri Oct 26 16:11:52 CDT 2007
On Oct 26, 2007, at 4:01 PM, Rodrigo Moraes wrote:
> On 10/26/07, Rodrigo Moraes wrote:
>> public function findAbsolute($file)
>> {
>> foreach ($this->_stack as $dir) {
>> $spec = Solar_File::exists($dir . $file);
>> if ($spec) {
>> return $spec;
>> }
>> }
>> return false;
>> }
>
> well, i got what i needed but now looking at it the method has a bad
> name. it doesn't look for an absolute path, only returns the absolute
> path if found.
>
> it is used in a case where i need to inspect some properties (modified
> date, size) of the file name returned by the stack.
Hm ... what might a better name be?
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Join the Solar community wiki! <http://solarphp.org>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the Solar-talk
mailing list