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

Class: Formagic_Filter_Callback

Source Location: /Filter/Callback.php

Class Overview


Uses a valid PHP callback fot the value transformation.


Author(s):

  • Florian Sonnenburg

Version:

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

Copyright:

  • Copyright (c) 2009 Florian Sonnenburg

Implements interfaces:

Variables

Methods



Class Details

[line 39]
Uses a valid PHP callback fot the value transformation.

Takes two constructor arguments: One the callback itself, two the arguments for the callback.




Tags:

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


[ Top ]


Class Variables

$_arguments = array()

[line 51]

Array of arguments for the callback



Tags:

access:  private

Type:   Array


[ Top ]

$_callback =

[line 45]

A valid PHP callback



Tags:

access:  private

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 59]

Formagic_Filter_Callback __construct( mixed $callback, [ $arguments = null])

Constructor



Tags:

access:  public


Parameters:

mixed   $callback   A valid PHP callback
array   $arguments   Array of arguments for the callback

[ Top ]

method filter [line 73]

string filter( mixed $value)

Filters the value using the PHP callback.



Tags:

return:  The filtered value
access:  public



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

Parameters:

mixed   $value   The value to be filtered

[ Top ]


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