Filter
[ class tree: Filter ] [ index: Filter ] [ all elements ]

Class: Formagic_Filter_Date

Source Location: /Filter/Date.php

Class Overview


Converts the given string into human readable time format.


Author(s):

  • Florian Sonnenburg

Version:

  • $Id: Date.php 126 2011-05-18 18:41:58Z meweasle $

Copyright:

  • Copyright (c) 2009 Florian Sonnenburg

Implements interfaces:

Methods



Class Details

[line 42]
Converts the given string into human readable time format.

The following input formats are supported:

  • integer: $value is interpreted as Unix timestamp
  • (string)YYYY-MM-DD | YYYY-MM-DD HH:MM:SS: Date is converted into Unix timestamp
If $value cannot be converted into Unix timestamp, 'n/a' is returned instead.




Tags:

author:  Florian Sonnenburg
version:  $Id: Date.php 126 2011-05-18 18:41:58Z meweasle $
copyright:  Copyright (c) 2009 Florian Sonnenburg


[ Top ]


Class Methods


method filter [line 51]

void filter( $value)



Tags:

access:  public



Implementation of:
Formagic_Filter_Interface::filter()
Filter implementation.

Parameters:

   $value  

[ Top ]


Documentation generated on Sun, 22 May 2011 22:40:10 +0200 by phpDocumentor 1.4.3