You are here

class SassExtentionsCompassFunctionsFontFiles in Sassy 7

Compass extension SassScript font files functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.extensions.compass.functions

Hierarchy

Expanded class hierarchy of SassExtentionsCompassFunctionsFontFiles

File

phamlp/sass/extensions/compass/functions/fontFiles.php, line 18

View source
class SassExtentionsCompassFunctionsFontFiles {
  public function font_files() {
    if (func_num_args() % 2) {
      throw new SassScriptFunctionException('An even number of arguments must be passed to font_files()', array(), SassScriptParser::$context->node);
    }
    $args = func_get_args();
    $files = array();
    while ($args) {
      $files[] = '#{font_url(' . array_shift($args) . ")} format('" . trim(array_shift($args), '\'"') . "')";
    }
    return new SassString(join(", ", $files));
  }

}

Members