Welcome To Snipplr


Everyone's Recent Snippets Tagged class



This class can log messages to a file. If the log file becomes too large (over 1MB), the class will archive it and will create new. If there are archives older than one month, they will be deleted automatically. In the future versions I will add th...
0 1461 posted 14 years ago by stz184
View class that contains features like: - get vars inside the view with: 1) $var1 2) $this->var1 3) or $this->get( 'var1', 'defaultValue' ) - factory method for direct chaining: Lim_View::factory( 'test.php' )->set( 'var1', 'value1' )->...
0 1135 posted 14 years ago by freelancephp
This function returns a new instance of the class it receives.
2 1563 posted 14 years ago by JaaQ
A LESS class which can be included to easily allow for a page-curl/shadow on element. *NOTE: Still needs work to allow for consistency at various sizes...* **Usage Instructions** * To remove reliance on javascript, setup the LESS compiler:...
6 1545 posted 14 years ago by bdiddymc
Here is an example of a sound that is in a library with the class field set to MySound.
0 2106 posted 14 years ago by adrianparr
1 1264 posted 14 years ago by hejaaa
Just add a method like this in a Class that needs to call methods dynamically, without a prior knowledge of whether they exist or not.
0 1203 posted 14 years ago by jayarjo
Basic usage of class and objects
0 1154 posted 14 years ago by vamsi
2 1666 posted 14 years ago by vaishnavi
An example which illustrates the ways of extending a class by class methods.
0 1297 posted 14 years ago by Shamaoke
Ever got tired of writing System.out.print(); all the time when testing, well, to avoid this, just create a helper method that will narrow it down to print();
0 1123 posted 14 years ago by visudex
This snippet will allow you to read user's input when they write in the console. This method uses the Scanner class, which is my favorite way of doing instead of using the Buffered Reader, with the Scanner, you can also read from a file.
0 1211 posted 14 years ago by visudex
0 1238 posted 14 years ago by jli
0 1180 posted 14 years ago by sb_01
0 1103 posted 14 years ago by beso
0 1162 posted 14 years ago by sorinspanu
This is the test class for the LeadReassignment class.
0 1059 posted 15 years ago by leeclint
Great for formatting.
1 1348 posted 15 years ago by trusktr
Using class files sets your code free. And it’s really no harder than coding on the timeline; it just involves a little more setup.
0 1119 posted 15 years ago by Activetuts
1 1090 posted 15 years ago by sb_01
1 1246 posted 15 years ago by xz
2 1401 posted 15 years ago by imake