PageRenderTime 33ms CodeModel.GetById 20ms app.highlight 11ms RepoModel.GetById 0ms app.codeStats 0ms

/library/Zend/Tool/Project/Profile/Iterator/EnabledResourceFilter.php

https://bitbucket.org/hamidrezas/melobit
PHP | 43 lines | 8 code | 2 blank | 33 comment | 0 complexity | 6bd7ef1498db47caf03f19884999eb01 MD5 | raw file
Possible License(s): AGPL-1.0
 1<?php
 2/**
 3 * Zend Framework
 4 *
 5 * LICENSE
 6 *
 7 * This source file is subject to the new BSD license that is bundled
 8 * with this package in the file LICENSE.txt.
 9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category   Zend
16 * @package    Zend_Tool
17 * @subpackage Framework
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: EnabledResourceFilter.php 24594 2012-01-05 21:27:01Z matthew $
21 */
22
23/**
24 * This class is an iterator that will iterate only over enabled resources
25 *
26 * @category   Zend
27 * @package    Zend_Tool
28 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
29 * @license    http://framework.zend.com/license/new-bsd     New BSD License
30 */
31class Zend_Tool_Project_Profile_Iterator_EnabledResourceFilter extends RecursiveFilterIterator
32{
33
34    /**
35     * accept() is required by teh RecursiveFilterIterator
36     *
37     * @return bool
38     */
39    public function accept()
40    {
41        return $this->current()->isEnabled();
42    }
43}