public static function type($name)
    {
        $finder = new pakeFinder();

        if (strtolower(substr($name, 0, 3)) == 'dir') {
            $finder->type = 'directory';
        } else {
            if (strtolower($name) == 'any') {
                $finder->type = 'any';
            } else {
                $finder->type = 'file';
            }
        }

        return $finder;
    }
public static function type($name)
    {
        $finder = new pakeFinder();

        if (strtolower(substr($name, 0, 3)) == 'dir') {
            $finder->type = 'directory';
        } else {
            if (strtolower($name) == 'any') {
                $finder->type = 'any';
            } else {
                $finder->type = 'file';
            }
        }

        return $finder;
    }
public static function type ( $ name ) { $ finder = new pakeFinder ( ) ; if ( strtolower ( substr ( $ name , 0 , 3 ) ) == 'dir' ) { $ finder -> type = 'directory' ; } else { if ( strtolower ( $ name ) == 'any' ) { $ finder -> type = 'any' ; } else { $ finder -> type = 'file' ; } } return $ finder ; }
Factory, which prepares new pakeFinder objects
Sets the type of elements to return.

@param  string "directory" or "file" or "any" (for both file and directory)
@return pakeFinder
Factory which prepares new pakeFinder objects Sets the type of elements to return .