File manager - Edit - /home/opticamezl/www/newok/templates/yootheme/packages/builder-joomla/src/ArticleHelper.php
Back
<?php namespace YOOtheme\Builder\Joomla; use Joomla\CMS\Factory; class ArticleHelper { public const PATTERN = '/^<!--\s?(\{.*})\s?-->/'; public static function matchContent($content) { return str_contains((string) $content, '<!--') && preg_match(static::PATTERN, $content, $matches) ? $matches[1] : null; } public static function getCollision($article) { $user = Factory::getUser($article->modified_by); return [ 'contentHash' => md5($article->fulltext . $article->introtext), 'modifiedBy' => $user->username ?: '', ]; } public static function isArticleView() { $input = Factory::getApplication()->input; return $input->getCmd('option') === 'com_content' && $input->getCmd('view') === 'article' && $input->getCmd('task', '') === ''; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings