Your IP : 18.191.154.143
<?php
namespace Bitrix\Landing;
class LandingBlock
{
/**
* Some params array.
* @var array
*/
protected $params = [];
/**
* LandingBlock constructor.
*/
public function __construct()
{
}
/**
* Get state of edit mode.
* @return boolean
*/
public function getEditMode()
{
return Landing::getEditMode();
}
/**
* Get mixed stored data of block.
* @param string $code Data code.
* @return mixed|null
*/
public function get($code)
{
if (array_key_exists($code, $this->params))
{
return $this->params[$code];
}
else
{
return null;
}
}
/**
* Method, which will be called once time.
* @param array Params array.
* @return void
*/
public function init(array $params = [])
{
}
/**
* Method, which executes just before block.
* @param Block $block Block instance.
* @return void
*/
public function beforeView(Block $block)
{
}
}