امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hello,
I have 3rd addon, and it has a function:
Code:
I extend this class and rewrite that function like that (of course, I created an extension in ACP).
Code:
Read more
I have 3rd addon, and it has a function:
Code:
کد:
<?php
namespace Abc\Xyz\Job;
use XF\Job\AbstractRebuildJob;
class MathJaxParser extends AbstractRebuildJob
{
public static function isContainsMathJax(string $message): bool
{
return preg_match('/(\\\()(.*?)(\\\))|\$([^\$]+)\$|\$\$([^\$]+)\$\$/ism', $message) === 1;
}
... another function
}
I extend this class and rewrite that function like that (of course, I created an extension in ACP).
Code:
<?php...Read more
