File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/landing/lib/landingblock.php
Back
<?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 creating the block (first add on page). * @param Block $block Block instance. * @return void */ public function beforeAdd(Block $block) { } /** * Method, which executes just before block. * @param Block $block Block instance. * @return void */ public function beforeView(Block $block) { } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings