This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CrossZero { | |
private $size; | |
private $table; | |
public const EMPTY = "-"; | |
public const X = "x"; | |
public const O = "o"; | |
public function __construct(int $size = 3) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class cmsCacheFiles { | |
private $cache_path; | |
public function __construct($config) { | |
$this->cache_path = $config->cache_path.'data/'; | |
} | |
public function set($key, $value, $ttl){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
class Xand0 { | |
final char SIGN_X = 'x'; | |
final char SIGN_O = 'o'; | |
final char SIGN_EMPTY = '.'; | |
char[][] table; | |
Random random; | |
Scanner sc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// system/controllers/division/forms/form_division.php | |
class formDivisionDivision extends cmsForm { | |
public function init() { | |
return [ | |
[ | |
"type" => "fieldset", | |
"childs" => [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// /templates/default/widgets/chack/chack.php | |
<?php | |
echo $file; | |
echo $qwe; | |
?> | |
// system/widgets/chack/options.form.php | |
<?php | |
class formWidgetChackOptions extends cmsForm { | |
public function init() { | |
$a = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RectDraw | |
{ | |
public $inscription; // содержание надписи | |
public $width; // ширина svg изображения | |
public $bg_color; // цвер фона | |
public $font_size; // размер шрифта | |
public $strings = []; | |
public $error = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @internal @properties &meatAltBase=предполагаемое содержимое атрибута alt;text;[*pagetitle*] &numImg=добавить нумерацию изображений в alt;list;да,нет;да | |
* @internal @events OnDocFormSave | |
* @author Борис Федоров <w-navt@yandex.ru> | |
*/ | |
if (!isset($meatAltBase)) { | |
$meatAltBase = '[*pagetitle*]'; // предполагаемое содержимое атрибута alt | |
} | |
if (!isset($numImg)) { |