ATWF A Tcl Web Framwork

Artifact [242ad648c3]
Login

Artifact [242ad648c3]

Artifact 242ad648c364ba6ebc13f2e443b8118cf05fe8a1:


#*************************************************************************
#*
#*  $Author$
#*  $URL$
#*
#*  This module has been implemented in Tcl by using mostly the corresponding module
#*  Filter/Dir.php from the Zend framework see: http://framework.zend.com
#*  So the ideas are also copyrighted by Zend Technologies USA Inc. (http://www.zend.com)
#*  The implementation in Tcl uses ditcs and lists instead of php arrays.
#* 
#*  The Contents of this file are made available subject to the terms of
#*  the following license see @license below
#*
#*  Copyright 2010 Arnulf Wiedemann
#*
#*  Author: Arnulf Wiedemann
#*
#*  Contributor(s): 
#*
# @category    ATWF
# @package     library
# @subpackage  Filters
# @license     BSD License (see file license.terms in the source top drectory)
# @version     $Id$
#************************************************************************/

namespace eval ::ATWF {

::itcl::extendedclass Filters::Dir {
    inherit ::ATWF::Filter

    public method filter {value}
}

  #============================ filter =========================================
  # Defined by Filter
  #
  # Returns dirname($value)
  #
  # @param  string $value
  # @return string
::itcl::body Filters::Dir::filter {value} {
    return [file dirname $value]
}

} ; # END ::ATWF