protection class
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 2833
Exception::Class 1.23
Exception::Class is a Perl module that allows you to declare real exception classes in Perl. more>>
Exception::Class is a Perl module that allows you to declare real exception classes in Perl.
SYNOPSIS
use Exception::Class
( MyException,
AnotherException =>
{ isa => MyException },
YetAnotherException =>
{ isa => AnotherException,
description => These exceptions are related to IPC },
ExceptionWithFields =>
{ isa => YetAnotherException,
fields => [ grandiosity, quixotic ],
alias => throw_fields,
},
);
# try
eval { MyException->throw( error => I feel funny. ) };
my $e;
# catch
if ( $e = Exception::Class->caught(MyException) )
{
warn $e->error, "n", $e->trace->as_string, "n";
warn join , $e->euid, $e->egid, $e->uid, $e->gid, $e->pid, $e->time;
exit;
}
elsif ( $e = Exception::Class->caught(ExceptionWithFields) )
{
$e->quixotic ? do_something_wacky() : do_something_sane();
}
else
{
$e = Exception::Class->caught();
ref $e ? $e->rethrow : die $e;
}
# use an alias - without parens subroutine name is checked at
# compile time
throw_fields error => "No strawberry", grandiosity => "quite a bit";
Exception::Class allows you to declare exception hierarchies in your modules in a "Java-esque" manner.
It features a simple interface allowing programmers to declare exception classes at compile time. It also has a base exception class, Exception::Class::Base, that can be easily extended.
It is designed to make structured exception handling simpler and better by encouraging people to use hierarchies of exceptions in their applications, as opposed to a single catch-all exception class.
This module does not implement any try/catch syntax. Please see the "OTHER EXCEPTION MODULES (try/catch syntax)" section for more information on how to get this syntax.
<<lessSYNOPSIS
use Exception::Class
( MyException,
AnotherException =>
{ isa => MyException },
YetAnotherException =>
{ isa => AnotherException,
description => These exceptions are related to IPC },
ExceptionWithFields =>
{ isa => YetAnotherException,
fields => [ grandiosity, quixotic ],
alias => throw_fields,
},
);
# try
eval { MyException->throw( error => I feel funny. ) };
my $e;
# catch
if ( $e = Exception::Class->caught(MyException) )
{
warn $e->error, "n", $e->trace->as_string, "n";
warn join , $e->euid, $e->egid, $e->uid, $e->gid, $e->pid, $e->time;
exit;
}
elsif ( $e = Exception::Class->caught(ExceptionWithFields) )
{
$e->quixotic ? do_something_wacky() : do_something_sane();
}
else
{
$e = Exception::Class->caught();
ref $e ? $e->rethrow : die $e;
}
# use an alias - without parens subroutine name is checked at
# compile time
throw_fields error => "No strawberry", grandiosity => "quite a bit";
Exception::Class allows you to declare exception hierarchies in your modules in a "Java-esque" manner.
It features a simple interface allowing programmers to declare exception classes at compile time. It also has a base exception class, Exception::Class::Base, that can be easily extended.
It is designed to make structured exception handling simpler and better by encouraging people to use hierarchies of exceptions in their applications, as opposed to a single catch-all exception class.
This module does not implement any try/catch syntax. Please see the "OTHER EXCEPTION MODULES (try/catch syntax)" section for more information on how to get this syntax.
Download (0.016MB)
Added: 2007-05-23 License: Perl Artistic License Price:
884 downloads
PHP Greeting card class 1.1
PHP Greeting card class can be used to compose and send greeting cards by email. more>>
PHP Greeting card class can be used to compose and send greeting cards by email.
PHP Greeting card class can compose and send an email message with a greeting either in text, in HTML with an image, or in HTML with Flash content.
The HTML version of the card may include a greeting picture.
<<lessPHP Greeting card class can compose and send an email message with a greeting either in text, in HTML with an image, or in HTML with Flash content.
The HTML version of the card may include a greeting picture.
Download (0.95MB)
Added: 2006-12-21 License: GPL (GNU General Public License) Price:
1043 downloads
Calendario Class 1.0
Calendario Class provides a PHP class that is useful for creating calendars and organizers. more>>
Calendario Class provides a PHP class that is useful for creating calendars and organizers.
Calendario Class is a PHP class that helps you to create calendar and organizers.
Its highly configurable, letting you choose how many days are in a week, when a week starts, the details of the HTML output, and so on.
It also knows about holidays.
Enhancements:
- Added holidays functionality
<<lessCalendario Class is a PHP class that helps you to create calendar and organizers.
Its highly configurable, letting you choose how many days are in a week, when a week starts, the details of the HTML output, and so on.
It also knows about holidays.
Enhancements:
- Added holidays functionality
Download (0.096MB)
Added: 2007-03-16 License: LGPL (GNU Lesser General Public License) Price:
956 downloads
DB_cart Class 1.13
DB_cart Class is a MySQL shopping cart script that can be used with third party product catalogues and membership systems. more>>
DB_cart Class is a MySQL shopping cart script that can be used with third party product catalogues and membership systems. The MySQL database structure is neutral to existing systems.
DB_cart Class can handle the shopping cart (add, update, and empty) and checkout process (set the shipment address and email the order).
For existing cart users, the shopping cart is still available upon the users next visit and is visible by checkout. The last option is configurable togther with a time period.
Enhancements:
- There are modifications and improvements inside the main class file, several examples, and the table structure has been extended.
- There two additional fields for the shipment values (name2 and address2).
- All messages are available in German, English, and Dutch.
- The standard text inside the email messages is in external files now; this content is parsed inside the improved email method.
<<lessDB_cart Class can handle the shopping cart (add, update, and empty) and checkout process (set the shipment address and email the order).
For existing cart users, the shopping cart is still available upon the users next visit and is visible by checkout. The last option is configurable togther with a time period.
Enhancements:
- There are modifications and improvements inside the main class file, several examples, and the table structure has been extended.
- There two additional fields for the shipment values (name2 and address2).
- All messages are available in German, English, and Dutch.
- The standard text inside the email messages is in external files now; this content is parsed inside the improved email method.
Download (0.035MB)
Added: 2006-06-16 License: BSD License Price:
1227 downloads
Exception::Class::TryCatch 1.10
Exception::Class::TryCatch is a syntactic try/catch sugar for use with Exception::Class. more>>
Exception::Class::TryCatch is a syntactic try/catch sugar for use with Exception::Class.
SYNOPSIS
use Exception::Class::TryCatch;
# simple usage of catch()
eval { Exception::Class::Base->throw(error) };
catch my $err and warn $err->error;
# catching only certain types or else rethrowing
eval { Exception::Class::Base::SubClass->throw(error) };
catch( my $err, [Exception::Class::Base, Other::Exception] )
and warn $err->error;
# catching and handling different types of errors
eval { Exception::Class::Base->throw(error) };
if ( catch my $err ) {
$err->isa(this) and do { handle_this($err) };
$err->isa(that) and do { handle_that($err) };
}
# use "try eval" to push exceptions onto a stack to catch later
try eval {
Exception::Class::Base->throw(error)
};
do {
# cleanup that might use "try/catch" again
};
catch my $err; # catches a matching "try"
Exception::Class::TryCatch provides syntactic sugar for use with Exception::Class using the familiar keywords try and catch. Its primary objective is to allow users to avoid dealing directly with $@ by ensuring that any exceptions caught in an eval are captured as Exception::Class objects, whether they were thrown objects to begin with or whether the error resulted from die. This means that users may immediately use isa and various Exception::Class methods to process the exception.
In addition, this module provides for a method to push errors onto a hidden error stack immediately after an eval so that cleanup code or other error handling may also call eval without the original error in $@ being lost.
Inspiration for this module is due in part to Dave Rolskys article "Exception Handling in Perl With Exception::Class" in The Perl Journal (Rolsky 2004).
The try/catch syntax used in this module does not use code reference prototypes the way the Error.pm module does, but simply provides some helpful functionality when used in combination with eval. As a result, it avoids the complexity and dangers involving nested closures and memory leaks inherent in Error.pm (Perrin 2003).
Rolsky (2004) notes that these memory leaks may not occur in recent versions of Perl, but the approach used in Exception::Class::TryCatch should be safe for all versions of Perl as it leaves all code execution to the eval in the current scope, avoiding closures altogether.
<<lessSYNOPSIS
use Exception::Class::TryCatch;
# simple usage of catch()
eval { Exception::Class::Base->throw(error) };
catch my $err and warn $err->error;
# catching only certain types or else rethrowing
eval { Exception::Class::Base::SubClass->throw(error) };
catch( my $err, [Exception::Class::Base, Other::Exception] )
and warn $err->error;
# catching and handling different types of errors
eval { Exception::Class::Base->throw(error) };
if ( catch my $err ) {
$err->isa(this) and do { handle_this($err) };
$err->isa(that) and do { handle_that($err) };
}
# use "try eval" to push exceptions onto a stack to catch later
try eval {
Exception::Class::Base->throw(error)
};
do {
# cleanup that might use "try/catch" again
};
catch my $err; # catches a matching "try"
Exception::Class::TryCatch provides syntactic sugar for use with Exception::Class using the familiar keywords try and catch. Its primary objective is to allow users to avoid dealing directly with $@ by ensuring that any exceptions caught in an eval are captured as Exception::Class objects, whether they were thrown objects to begin with or whether the error resulted from die. This means that users may immediately use isa and various Exception::Class methods to process the exception.
In addition, this module provides for a method to push errors onto a hidden error stack immediately after an eval so that cleanup code or other error handling may also call eval without the original error in $@ being lost.
Inspiration for this module is due in part to Dave Rolskys article "Exception Handling in Perl With Exception::Class" in The Perl Journal (Rolsky 2004).
The try/catch syntax used in this module does not use code reference prototypes the way the Error.pm module does, but simply provides some helpful functionality when used in combination with eval. As a result, it avoids the complexity and dangers involving nested closures and memory leaks inherent in Error.pm (Perrin 2003).
Rolsky (2004) notes that these memory leaks may not occur in recent versions of Perl, but the approach used in Exception::Class::TryCatch should be safe for all versions of Perl as it leaves all code execution to the eval in the current scope, avoiding closures altogether.
Download (0.015MB)
Added: 2007-01-22 License: Perl Artistic License Price:
1005 downloads
KinoSearch::Util::Class 0.13
KinoSearch::Util::Class is a Perl class building utility. more>>
KinoSearch::Util::Class is a Perl class building utility.
PRIVATE CLASS
This is a private class and the interface may change radically and without warning. Do not use it on its own.
SYNOPSIS
package KinoSearch::SomePackage::SomeClass;
use base qw( KinoSearch::Util::Class );
BEGIN {
__PACKAGE__->init_instance_vars(
# constructor params / members
foo => undef,
bar => {},
# members
baz => {},
);
}
KinoSearch::Util::Class is a class-building utility a la Class::Accessor, Class::Meta, etc. It provides four main services:
- A mechanism for inheriting instance variable declarations.
- A constructor with basic argument checking.
- Manufacturing of get_xxxx and set_xxxx methods.
- Convenience methods which help in defining abstract classes.
<<lessPRIVATE CLASS
This is a private class and the interface may change radically and without warning. Do not use it on its own.
SYNOPSIS
package KinoSearch::SomePackage::SomeClass;
use base qw( KinoSearch::Util::Class );
BEGIN {
__PACKAGE__->init_instance_vars(
# constructor params / members
foo => undef,
bar => {},
# members
baz => {},
);
}
KinoSearch::Util::Class is a class-building utility a la Class::Accessor, Class::Meta, etc. It provides four main services:
- A mechanism for inheriting instance variable declarations.
- A constructor with basic argument checking.
- Manufacturing of get_xxxx and set_xxxx methods.
- Convenience methods which help in defining abstract classes.
Download (0.21MB)
Added: 2006-09-02 License: Perl Artistic License Price:
1147 downloads
Validate_fields Class 1.34
Validate_fields Class is an easy-to-use form field validation PHP script. more>>
Validate_fields Class is an easy-to-use form field validation PHP script. This class can be used to validate database inputs or mail forms.
It can validate simple text, numbers, dates, urls, email addresses, and the presence of HTML tags. Invalid form fields will be reported inside a detailed error message.
Enhancements:
- A small improvement in the create_msg() method makes it possible to switch between the XHTML version and the simple HTML version.
- In the fields array one key was named "name", and it has been renamed to "value" to make it more clear.
- The variable declarations at the beginning of the validation method was removed.
- Because the value of a checkbox (radio) type field is only available if the element is checked, there are new functions to validate this elements.
<<lessIt can validate simple text, numbers, dates, urls, email addresses, and the presence of HTML tags. Invalid form fields will be reported inside a detailed error message.
Enhancements:
- A small improvement in the create_msg() method makes it possible to switch between the XHTML version and the simple HTML version.
- In the fields array one key was named "name", and it has been renamed to "value" to make it more clear.
- The variable declarations at the beginning of the validation method was removed.
- Because the value of a checkbox (radio) type field is only available if the element is checked, there are new functions to validate this elements.
Download (0.008MB)
Added: 2006-02-21 License: GPL (GNU General Public License) Price:
1340 downloads
Dynamic Probe Class Library 3.4.3
Dynamic Probe Class Library (DPCL) is an object-based C++ class library. more>>
Dynamic Probe Class Library (DPCL) is an object-based C++ class library that provides the necessary infrastructure to allow tool developers and sophisticated tool users to build parallel and serial tools through technology called dynamic instrumentation.
Dynamic Probe Class Library takes the basic components needed by tool developers and encapsulates them into C++ classes. Each of these classes provide the member functions necessary to interact and dynamically instrument a running application with software patches called probes.
Dynamic instrumentation provides the flexibility for tools to insert probes into applications as the application is running and only where it is needed.
Enhancements:
- This version is a minor update to DPCL that fixes a couple problems that have been reported since the v3.4.2 release
<<lessDynamic Probe Class Library takes the basic components needed by tool developers and encapsulates them into C++ classes. Each of these classes provide the member functions necessary to interact and dynamically instrument a running application with software patches called probes.
Dynamic instrumentation provides the flexibility for tools to insert probes into applications as the application is running and only where it is needed.
Enhancements:
- This version is a minor update to DPCL that fixes a couple problems that have been reported since the v3.4.2 release
Download (2.5MB)
Added: 2006-07-28 License: GPL (GNU General Public License) Price:
1185 downloads
Object::Relation::Meta::Class::Schema 0.1.0
Object::Relation::Meta::Class::Schema is a Perl module for Object::Relation database store builder. more>>
Object::Relation::Meta::Class::Schema is a Perl module for Object::Relation database store builder.
This module is provides metadata for all Object::Relation classes while building a storage schema. Loading Object::Relation::Schema causes it to be used instead of Object::Relation::Meta::Class. This is so that extra metadata methods are available that are useful in constructing the schema, but are not otherwise useful when an application is actually in use.
At this point, those attributes tend to be database-specific. Once other types of data stores are added (XML, LDAP, etc.), other attributes may be added to allow their schemas to be built, as well.
<<lessThis module is provides metadata for all Object::Relation classes while building a storage schema. Loading Object::Relation::Schema causes it to be used instead of Object::Relation::Meta::Class. This is so that extra metadata methods are available that are useful in constructing the schema, but are not otherwise useful when an application is actually in use.
At this point, those attributes tend to be database-specific. Once other types of data stores are added (XML, LDAP, etc.), other attributes may be added to allow their schemas to be built, as well.
Download (0.024MB)
Added: 2006-09-21 License: Perl Artistic License Price:
1128 downloads
WebServerInfo PHP class 1.0.0
WebServerInfo PHP class is intended for developer who create software that will run on different web servers. more>>
WebServerInfo PHP class is intended for developer who create software that will run
on different web servers. The project gives a developer a consistent interface
for accessing web servers variables.
Usage:
You have following options:
Option #1
require_once("WebServerInfo.class.php");
$obj = new WebServerInfo();
print $_SERVER[DOCUMENT_ROOT];
Option #2
require_once("WebServerInfo.class.php");
$obj = new WebServerInfo();
print $obj->get(DOCUMENT_ROOT);
Option #3
uncomment the 3rd line from WebServerInfo.class.php
and all you have to do is require the WebServerInfo.class.php class.
Note:
The constructor of WebServerInfo class overrides $_SERVER variable and
variables can be accessed as usual way.
Following base variables are exported if they do not exist.
REQUEST_URI
REDIRECT_URL
DOCUMENT_ROOT
SERVER_SIGNATURE
SERVER_ADDR
SCRIPT_FILENAME
<<lesson different web servers. The project gives a developer a consistent interface
for accessing web servers variables.
Usage:
You have following options:
Option #1
require_once("WebServerInfo.class.php");
$obj = new WebServerInfo();
print $_SERVER[DOCUMENT_ROOT];
Option #2
require_once("WebServerInfo.class.php");
$obj = new WebServerInfo();
print $obj->get(DOCUMENT_ROOT);
Option #3
uncomment the 3rd line from WebServerInfo.class.php
and all you have to do is require the WebServerInfo.class.php class.
Note:
The constructor of WebServerInfo class overrides $_SERVER variable and
variables can be accessed as usual way.
Following base variables are exported if they do not exist.
REQUEST_URI
REDIRECT_URL
DOCUMENT_ROOT
SERVER_SIGNATURE
SERVER_ADDR
SCRIPT_FILENAME
Download (0.013MB)
Added: 2006-11-22 License: LGPL (GNU Lesser General Public License) Price:
1067 downloads
PHP HTML Graph Class 1.0
PHP HTML Graph Class is a class for drawing vertical bar graphs using only HTML and CSS. more>>
PHP HTML Graph Class is a class for drawing vertical bar graphs using only HTML and CSS. Simple and grouped bars can be created. You can change everything regarding the looks as the output is template-driven.
On the fly, you can change the size of graph, the color of all or individual bars, add labels, a title, and footnotes, or customize the CSS style of all elements. The width and height of bars can be specified in pixels or percentages. The code is heavily documented.
Enhancements:
- In some PHP versions, there were some issues regarding passing variables by reference.
- The class would produce no output (nor errors) in PHP versions lower than 5 due to the different implementations of PHPs get_class() function in these versions.
<<lessOn the fly, you can change the size of graph, the color of all or individual bars, add labels, a title, and footnotes, or customize the CSS style of all elements. The width and height of bars can be specified in pixels or percentages. The code is heavily documented.
Enhancements:
- In some PHP versions, there were some issues regarding passing variables by reference.
- The class would produce no output (nor errors) in PHP versions lower than 5 due to the different implementations of PHPs get_class() function in these versions.
Download (MB)
Added: 2006-11-14 License: Free for non-commercial use Price:
1077 downloads
PHP ImageMagick Class 1.0
PHP ImageMagick Class is a class for processing images with ImageMagick. more>>
PHP ImageMagick Class is a class for processing images with ImageMagick. This PHP Class makes it possible to process images in a very easy way.
To scale an image to 640x480 when its bigger youy can do this:
include(imagemagick.class.php);
$im = new Imagemagick($targetdir);
$im->Resize(640, 480, keep_aspect);
$im->Save();
$im->CleanUp();
?>
Enhancements:
- retrieve image data
- flip
- dither
- monochrome
- negate
- rotate
- blur
- draw frame
- resize
- square
- crop
- convert
- save
<<lessTo scale an image to 640x480 when its bigger youy can do this:
include(imagemagick.class.php);
$im = new Imagemagick($targetdir);
$im->Resize(640, 480, keep_aspect);
$im->Save();
$im->CleanUp();
?>
Enhancements:
- retrieve image data
- flip
- dither
- monochrome
- negate
- rotate
- blur
- draw frame
- resize
- square
- crop
- convert
- save
Download (0.005MB)
Added: 2006-07-14 License: GPL (GNU General Public License) Price:
712 downloads
dtRdr::Traits::Class 0.0.11
dtRdr::Traits::Class is a Perl module with shared OO stuff. more>>
dtRdr::Traits::Class is a Perl module with shared OO stuff.
Methods to Break Things
NOT_IMPLEMENTED
Imported into base class. Gives a nicer message than the standard "Cant locate method...", indicating that you did not typo the method name, but instead forgot to override it.
sub virtual_method {my $self = shift; $self->NOT_IMPLEMENTED(@_);}
Is the shorter, less readable version worthwhile?
sub virtual_method { $_[0]->NOT_IMPLEMENTED(@_[1..$#_]);}
This should be safe for subclasses to override and/or call as ->SUPER::. This gives you something like an AUTOLOAD (though you would have to get (caller(1))[3] yourself) without having to also do can(), but thats untested...
WARN_NOT_IMPLEMENTED
Same as NOT_IMPLEMENTED(), but just a warning. Returns undef.
$self->WARN_NOT_IMPLEMENTED;
Class Hopping
claim
Assumes a hash-based object. Creates a copy (with only one level of dereference) and blesses it into Package.
$object = Package->claim($object);
<<lessMethods to Break Things
NOT_IMPLEMENTED
Imported into base class. Gives a nicer message than the standard "Cant locate method...", indicating that you did not typo the method name, but instead forgot to override it.
sub virtual_method {my $self = shift; $self->NOT_IMPLEMENTED(@_);}
Is the shorter, less readable version worthwhile?
sub virtual_method { $_[0]->NOT_IMPLEMENTED(@_[1..$#_]);}
This should be safe for subclasses to override and/or call as ->SUPER::. This gives you something like an AUTOLOAD (though you would have to get (caller(1))[3] yourself) without having to also do can(), but thats untested...
WARN_NOT_IMPLEMENTED
Same as NOT_IMPLEMENTED(), but just a warning. Returns undef.
$self->WARN_NOT_IMPLEMENTED;
Class Hopping
claim
Assumes a hash-based object. Creates a copy (with only one level of dereference) and blesses it into Package.
$object = Package->claim($object);
Download (2.8MB)
Added: 2007-03-16 License: GPL (GNU General Public License) Price:
952 downloads
Access_user Class 1.92
Access_user Class is an easy to use system for protecting pages and registering users. more>>
Access_user Class is an easy to use system for protecting pages and registering users. The main features are user login, user registration, page protection, forgotten password recovery, and email-based account activation.
The class is powered by MySQL and PHP sessions. Inside the package are examples for all primary methods.
Enhancements:
- Its now possible to store the session data in your database.
- This is much safer if you use sessions on a shared hosting server.
- The password is always encoded with MD5 now.
- session_destroy() was added to the logout method.
- The links used in the email messages are now double MD5-encoded.
<<lessThe class is powered by MySQL and PHP sessions. Inside the package are examples for all primary methods.
Enhancements:
- Its now possible to store the session data in your database.
- This is much safer if you use sessions on a shared hosting server.
- The password is always encoded with MD5 now.
- session_destroy() was added to the logout method.
- The links used in the email messages are now double MD5-encoded.
Download (0.036MB)
Added: 2006-10-20 License: GPL (GNU General Public License) Price:
1100 downloads
Cgiapp.class.php 2.0.0
Cgiapp.class.php is a port of CGI::Application to PHP. more>>
Cgiapp.class.php is a port of CGI::Application to PHP. Cgiapp.class.php utilizes Smarty as its default templating engine, much as CGI::Application uses HTML::Template, due to its prevalence and acceptance in the PHP community.
Due to PHPs built-in session support, it also adds two methods, s_param() and s_delete(), to handle session parameters.
A number of static methods have also been included to facilitate error handling and array/hash conversion.
<<lessDue to PHPs built-in session support, it also adds two methods, s_param() and s_delete(), to handle session parameters.
A number of static methods have also been included to facilitate error handling and array/hash conversion.
Download (0.16MB)
Added: 2006-06-05 License: GPL (GNU General Public License) Price:
1236 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above protection class search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed