Permalink
Browse files

Fixing PhpDoc errors.

  • Loading branch information...
meenie committed Jul 25, 2013
1 parent 8b4d087 commit ac86f057974385aab16a788a5e8be7fadb90a384
@@ -16,11 +16,15 @@
abstract class Filter
{
/**
* List of allowed params for a particular filter
*
* @var array
*/
protected $allowedParams = array();
/**
* Getter for $allowedParams
*
* @return array
*/
public function getAllowedParams()
@@ -19,6 +19,8 @@
class Minify extends Filter
{
/**
* List of allowed params for this particular filter
*
* @var array
*/
protected $allowedParams = array(
@@ -20,6 +20,8 @@
class Colorize extends Filter
{
/**
* List of allowed params for this particular filter
*
* @var array
*/
protected $allowedParams = array(
@@ -19,6 +19,8 @@
class Grayscale extends Filter
{
/**
* List of allowed params for this particular filter
*
* @var array
*/
protected $allowedParams = array(
@@ -19,6 +19,8 @@
class Negative extends Filter
{
/**
* List of allowed params for this particular filter
*
* @var array
*/
protected $allowedParams = array(
@@ -23,6 +23,8 @@
class Resize extends Filter
{
/**
* List of allowed params for this particular filter
*
* @var array
*/
protected $allowedParams = array(
@@ -19,6 +19,8 @@
class Minify extends Filter
{
/**
* List of allowed params for this particular filter
*
* @var array
*/
protected $allowedParams = array(
@@ -19,6 +19,8 @@
class Packer extends Filter
{
/**
* List of allowed params for this particular filter
*
* @var array
*/
protected $allowedParams = array(
@@ -30,9 +32,11 @@ class Packer extends Filter
);
/**
* Default options for the Packer library
*
* @var array
*/
protected $_defaultOptions = array(
protected $_defaultPackerOptions = array(
'encoding' => 62,
'fastDecode' => true,
'specialChars' => false
@@ -50,7 +54,7 @@ class Packer extends Filter
public function doFilter($file, $arguments, $javaScriptOptions)
{
$userOptions = isset($javaScriptOptions['packer']) ? $javaScriptOptions['packer'] : array();
$options = array_merge($this->_defaultOptions, $userOptions);
$options = array_merge($this->_defaultPackerOptions, $userOptions);
if (! $arguments['packer']) {
return;
@@ -10,4 +10,9 @@
use Munee\ErrorException;
/**
* Class NotFoundException
*
* @author Cody Lundquist
*/
class NotFoundException extends ErrorException {}
View
@@ -23,41 +23,50 @@
abstract class Type
{
/**
* Stores the Request Options for the Asset Type
*
* @var array
*/
protected $options = array();
/**
* @var array
*/
protected $params = array();
/**
* Stores the list of filters that will be applied to the requested asset.
*
* @var array
*/
protected $filters = array();
/**
* Stores the path to the cache directory
*
* @var string
*/
protected $cacheDir;
/**
* Stores the last modified date (Epoch) for the requested asset
*
* @var integer
*/
protected $lastModifiedDate = 0;
/**
* Stores the content of the asset
*
* @var string
*/
protected $content;
/**
* Reference to the \Munee\Request class
*
* @var \Munee\Request
*/
protected $request;
/**
* Reference to the \Munee\Response class
*
* @var \Munee\Response
*/
protected $response;
@@ -22,6 +22,8 @@
class Css extends Type
{
/**
* Stores the Request options for this Asset Type
*
* @var array
*/
protected $options = array(
@@ -20,6 +20,8 @@
class Image extends Type
{
/**
* Stores the Request options for this Asset Type
*
* @var array
*/
protected $options = array(
@@ -42,6 +44,11 @@ class Image extends Type
'imageProcessor' => 'GD'
);
/**
* Stores the specific placeholder that will be used for this requested asset, if any.
*
* @var bool
*/
protected $placeholder = false;
/**
@@ -165,6 +172,9 @@ protected function checkNumberOfAllowedFilters($checkImage)
}
/**
* Checks the 'placeholders' Request Option to see if placeholders should be used for missing images
* It uses a wildcard syntax (*) to see which placeholder should be used for a particular set of images.
*
* @param string $file
*
* @return boolean|string
@@ -8,4 +8,9 @@
namespace Munee;
/**
* Class ErrorException
*
* @author Cody Lundquist
*/
class ErrorException extends \Exception {}
View
@@ -19,41 +19,57 @@
class Request
{
/**
* Stores the path to Webroot
*
* @var string
*/
public $webroot = WEBROOT;
/**
* Stores the file extension of the current request
*
* @var string
*/
public $ext;
/**
* Stores the array of passed in parameters
*
* @var array
*/
public $params = array();
/**
* Stores the array of files passed in
*
* @var array
*/
public $files = array();
/**
* Stores the array of Request Options
*
* @var array
*/
public $options = array();
/**
* Stores the array of Raw $_GET parameters
*
* @var array
*/
protected $rawParams = array();
/**
* Stores the array of allowed parameters for the particular asset being processed
*
* @var array
*/
protected $allowedParams = array();
/**
* Stores the string of raw files passed in from $_GET
*
* @var string
*/
protected $rawFiles;
View
@@ -16,17 +16,23 @@
class Response
{
/**
* Used to check if the request is Not Modified so Munee can return 304 if that is the case
*
* @var boolean
*/
public $notModified = false;
/**
* @var object
* Instance of a Asset\HeaderSetter class
*
* @var Asset\HeaderSetter
*/
public $headerController;
/**
* @var Object
* Instance of a Asset\Type dynamically instantiated in the Constructor
*
* @var Asset\Type
*/
protected $assetType;

0 comments on commit ac86f05

Please sign in to comment.