1<?php 2 3/* 4 * This file is part of the Assetic package, an OpenSky project. 5 * 6 * (c) 2010-2014 OpenSky Project Inc 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12namespace Assetic\Filter; 13 14use Assetic\Util\CssUtils; 15 16/** 17 * An abstract filter for dealing with CSS. 18 * 19 * @author Kris Wallsmith <kris.wallsmith@gmail.com> 20 */ 21abstract class BaseCssFilter implements FilterInterface 22{ 23 /** 24 * @see CssUtils::filterReferences() 25 */ 26 protected function filterReferences($content, $callback, $limit = -1, &$count = 0) 27 { 28 return CssUtils::filterReferences($content, $callback, $limit, $count); 29 } 30 31 /** 32 * @see CssUtils::filterUrls() 33 */ 34 protected function filterUrls($content, $callback, $limit = -1, &$count = 0) 35 { 36 return CssUtils::filterUrls($content, $callback, $limit, $count); 37 } 38 39 /** 40 * @see CssUtils::filterImports() 41 */ 42 protected function filterImports($content, $callback, $limit = -1, &$count = 0, $includeUrl = true) 43 { 44 return CssUtils::filterImports($content, $callback, $limit, $count, $includeUrl); 45 } 46 47 /** 48 * @see CssUtils::filterIEFilters() 49 */ 50 protected function filterIEFilters($content, $callback, $limit = -1, &$count = 0) 51 { 52 return CssUtils::filterIEFilters($content, $callback, $limit, $count); 53 } 54} 55