n_oct/plugins/rainlab/builder/classes/BlueprintDesignTimeProvider...

31 lines
750 B
PHP
Raw Normal View History

2023-06-17 20:52:33 +00:00
<?php namespace RainLab\Builder\Classes;
use Backend\Classes\WidgetBase;
/**
* BlueprintDesignTimeProviderBase
*/
abstract class BlueprintDesignTimeProviderBase extends WidgetBase
{
/**
* renderBlueprintBody
* @param string $class Specifies the behavior class to render.
* @param array $properties Blueprint property values.
* @param object $blueprintObj
* @return string
*/
abstract public function renderBlueprintBody($class, $properties, $blueprintObj);
/**
* getPropertyValue
*/
protected function getPropertyValue($properties, $property)
{
if (array_key_exists($property, $properties)) {
return $properties[$property];
}
return null;
}
}