PageRenderTime 17ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/library/Zend/Filter/BaseName.php

https://bitbucket.org/hamidrezas/melobit
PHP | 50 lines | 9 code | 5 blank | 36 comment | 0 complexity | e58ced7463e73c919cf48a28fc7c33f9 MD5 | raw file
Possible License(s): AGPL-1.0
 1<?php
 2
 3/**
 4 * Zend Framework
 5 *
 6 * LICENSE
 7 *
 8 * This source file is subject to the new BSD license that is bundled
 9 * with this package in the file LICENSE.txt.
10 * It is also available through the world-wide-web at this URL:
11 * http://framework.zend.com/license/new-bsd
12 * If you did not receive a copy of the license and are unable to
13 * obtain it through the world-wide-web, please send an email
14 * to license@zend.com so we can send you a copy immediately.
15 *
16 * @category   Zend
17 * @package    Zend_Filter
18 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: BaseName.php 24594 2012-01-05 21:27:01Z matthew $
21 */
22
23
24/**
25 * @see Zend_Filter_Interface
26 */
27require_once 'Zend/Filter/Interface.php';
28
29
30/**
31 * @category   Zend
32 * @package    Zend_Filter
33 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
35 */
36class Zend_Filter_BaseName implements Zend_Filter_Interface
37{
38    /**
39     * Defined by Zend_Filter_Interface
40     *
41     * Returns basename($value)
42     *
43     * @param  string $value
44     * @return string
45     */
46    public function filter($value)
47    {
48        return basename((string) $value);
49    }
50}