Moodle SCSS compiler class.  
 More...
 | 
| 
array  | $scsscontent = array() | 
|   | Bits of SCSS content. 
  | 
|   | 
| 
string  | $scssfile | 
|   | The path to the SCSS file. 
  | 
|   | 
| 
array  | $scssprepend = array() | 
|   | Bits of SCSS content to prepend. 
  | 
|   | 
Moodle SCSS compiler class. 
- Copyright
 - 2016 Frédéric Massart 
 
- License
 - http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
 
 
◆ add_variables()
      
        
          | core_scss::add_variables  | 
          ( | 
          array  | 
          $variables | ) | 
           | 
        
      
 
Add variables. 
- Parameters
 - 
  
    | array | $scss | Associative array of variables and their values.  | 
  
   
- Return values
 - 
  
  
 
 
 
◆ append_raw_scss()
      
        
          | core_scss::append_raw_scss  | 
          ( | 
            | 
          $scss | ) | 
           | 
        
      
 
Append raw SCSS to what's to compile. 
- Parameters
 - 
  
  
 
- Return values
 - 
  
  
 
 
 
◆ compile()
      
        
          | core_scss::compile  | 
          ( | 
            | 
          $code,  | 
        
        
           | 
           | 
            | 
          $path = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Compile scss. 
Overrides ScssPHP's implementation, using the SassC compiler if it is available.
- Parameters
 - 
  
    | string | $code | SCSS to compile.  | 
    | string | $path | Path to SCSS to compile. | 
  
   
- Return values
 - 
  
  
 
 
 
◆ compileChild()
  
  
      
        
          | core_scss::compileChild  | 
          ( | 
            | 
          $child,  | 
         
        
           | 
           | 
          ScssPhp\ScssPhp\Formatter\OutputBlock  | 
          $out  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Compile child; returns a value to halt execution. 
- Parameters
 - 
  
    | array | $child |  | 
    | ScssPhp::ScssPhp::Formatter::OutputBlock | $out |  | 
  
   
- Return values
 - 
  
  
 
 
 
◆ is_valid_file()
  
  
      
        
          | core_scss::is_valid_file  | 
          ( | 
            | 
          $path | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Is the given file valid for import ? 
- Parameters
 - 
  
  
 
- Return values
 - 
  
  
 
 
 
◆ prepend_raw_scss()
      
        
          | core_scss::prepend_raw_scss  | 
          ( | 
            | 
          $scss | ) | 
           | 
        
      
 
Prepend raw SCSS to what's to compile. 
- Parameters
 - 
  
  
 
- Return values
 - 
  
  
 
 
 
◆ set_file()
      
        
          | core_scss::set_file  | 
          ( | 
            | 
          $filepath | ) | 
           | 
        
      
 
Set the file to compile from. 
The purpose of this method is to provide a way to import the content of a file without messing with the import directories.
- Parameters
 - 
  
    | string | $filepath | The path to the file.  | 
  
   
- Return values
 - 
  
  
 
 
 
◆ to_css()
Compiles to CSS. 
- Return values
 - 
  
  
 
 
 
The documentation for this class was generated from the following file: