| Simran documentation | view source | Contained in the Simran distribution. |
Simran::Base - This is the base class for all modules in the Simran:: area.
use base qw(Simran::Base);
This class should never be instantiated directly.
You should only be inheriting from it.
Provide a standard "new" method for all classes that inherit from this class.
* A HASH of name/value pairs you want to set as properties
A property can be referenced as such (after being set):
$object->{property_name};
(the properties are set via the _init method)
Note: This new method calls $self->_init(@_) and expects '1' or 'undef' depending on if the _init was successful
* An Object - if all was well undef - otherwise
* This method should be used as a class method only
This method sets the error to the message that you provide for the calling module.
* @errors - Error Messages
* undef - This function returns undef so you can do things like:
return $self->setError("No User Specified");
in your code.
* Sets the variable Your::Class::Name::_ErrorMessages although this variable should never be used directly.
* This method can be used as a class or object method
This method returns the last error message for the calling module...
* None
* @errors - Errors as set by setError
* This method can be used as a class or object method
Strips out leading and training whitespaces from references...
* Reference to an array, hash or string
or
A string
* If input was a reference then, None - The reference passed as input is modified...
Else, the stripped string
* This method can be used as a class or object method
Simran, <simran@cse.unsw.edu.au>
Copyright 2002 by simran
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Simran documentation | view source | Contained in the Simran distribution. |