2013-05-27 12:49:32 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class ImageVariant extends File
|
|
|
|
{
|
|
|
|
public $width;
|
|
|
|
public $height;
|
|
|
|
public $type;
|
|
|
|
public $size;
|
2013-08-19 12:11:40 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param $class string|StdClass
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public static function getIsClass($class)
|
|
|
|
{
|
|
|
|
if (is_object($class)) {
|
|
|
|
return (get_class($class) == __CLASS__);
|
|
|
|
} else {
|
|
|
|
return ($class == __CLASS__);
|
|
|
|
}
|
|
|
|
}
|
2013-05-27 12:49:32 +04:00
|
|
|
}
|