Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/landing/lib/ |
Upload File : |
<?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) { } }