Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7a07101192
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (38 sloc) 0.675 kb
<?php
/**
* PHPSprocket - A PHP implementation of Sprocket
*
* @package sprocket
* @subpackage libs
*/
/**
* SprocketCommand Class
*
* @author Kjell Bublitz
*/
class SprocketCommand {
/**
* Sprocket Object
* @var object
*/
var $Sprocket;
/**
* Command Constructor
*/
function __construct(&$sprocket) {
$this->Sprocket = $sprocket;
}
/**
* Return filename
*/
function getFileName($context, $param) {
return basename($context.'/'.$param.'.'.$this->Sprocket->fileExt);
}
/**
* Return filecontext
*/
function getFileContext($context, $param) {
return dirname(realpath($context.'/'.$param.'.'.$this->Sprocket->fileExt));
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.