"Sputnik" help  
Sputnik Help
Language Reference - Classes - Class Magic Functions - IsSet

Class Magic Functions - IsSet

This allows a class to override all the operation of the IsSet() function tests within Sputnik when used on a class.for example:

class caty
{
    Function __IsSet($a)
    {
        say "Isset called with ";
        printr $a;
        say "...";
        return true;
    }
}

my $xx = new caty();
isset($xx["meep"]);

// PRINTS
// Isset called with
// meep
// ...

It will send the argument "meep" to the class masic function to check if it's set or not.

A full list of all possible magic functions can be found here.


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org