PHP Classes

new_label: Label new items with "new" for a number of days.

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 41%Total: 910 All time: 3,903 This week: 660Up
Version License Categories
new_label 1.0GNU General Publi...Time and Date, Statistics
Description 

Author

The class is used to print the label "new" (or something else) as text or graphics if the item labeled is only a certain number of days old.

new_label is able to take the time values directly out of a mysql table "date" field. (no conversion needed for that)

If a certain number of days is over, the "new" label will not show up any more for the labeled item. If you change anything on your page you can label it 'changed' or 'new info' instead of 'new'. The string for 'new' is user defineable and does not really have to be 'new'.

Picture of Peter Klauer
Name: Peter Klauer <contact>
Classes: 18 packages by
Country: Germany Germany
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (2)  
File Role Description
Plain text file inc_new_label.php Class the class file
Accessible without login Plain text file test_new_label.php Example a demo file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:910
This week:0
All time:3,903
This week:660Up
 User Ratings  
 
 All time
Utility:58%StarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:41%StarStarStar
Rank:3726