Файл: concrete5.7.5.6/concrete/src/StyleCustomizer/Style/Value/ImageValue.php
Строк: 22
<?php
namespace ConcreteCoreStyleCustomizerStyleValue;
class ImageValue extends Value {
protected $imageUrl;
protected $fID;
public function setUrl($url)
{
$this->imageUrl = $url;
}
public function getUrl()
{
return $this->imageUrl;
}
public function setFileID($fID)
{
$this->fID = $fID;
}
public function getFileID()
{
return $this->fID;
}
public function toStyleString()
{
return 'background-image: url(' . $this->getUrl() . ')';
}
public function toLessVariablesArray()
{
return array($this->getVariable() . '-image' => ''' . $this->getUrl() . ''');
}
}