meraproject/themes/merakomis/dictionary/org/controller.php
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00

51 lines
2.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?
namespace controller\themes\merakomis\dictionary\org;
use core\core\structure\eRowClick;
use ms\ms\structure\msControllerTable;
use themes\Merakomis;
use themes\merakomis\Emp;
use themes\merakomis\structure\merakomisControllerTable;
use themes\merakomis\structure\merakomisModuleTable;
class Api extends merakomisControllerTable {
/** @var merakomisModuleTable */
static $class = 'themes\merakomis\dictionary\Org';
public static function getForm() {
$res = [];
if(Emp::$IS_AUTH) {
$_POST[static::$class::$ID] = $_POST['id'];
$res = static::$class::getFormInfo($_POST);
$res['title'] = 'Редактор юридического лица';
}
echo je($res);
}
public static function getTableData($post = []) {
$post['options'][\ModuleTable::ROW_CLICK] = eRowClick::CUSTOM;
$post['getData'] = true;
$res = parent::getTableData($post);
//$res['title'] = ['title'=>$res['title'],'subtitle'=>'Группа компаний «Мераком»','text'=>'Компьютеры коренным образом изменили жизнь каждого человека. Несколько десятилетий назад люди даже не знали ничего об этих электронных устройствах, тогда как в наши дни даже маленький ребенок может управлять этой машиной. Почти все современные технологии зависит от компьютеров, которые используются для хранения данных: файлов, секретной информации, банковских операций и прочего.'];;
//$res['title'] = ['title'=>$res['title'],'subtitle'=>Merakomis::$ORG_TABLE_SUBTITLE,'text'=>Merakomis::$ORG_TABLE_TEXT];
$res['title'] = [
'title' => $res['title'],
'edit' => true,
'subtitle' => Merakomis::$ORG_TABLE_SUBTITLE,
'text' => Merakomis::$ORG_TABLE_TEXT,
'subtitle_var' => Merakomis::$_ORG_TABLE_SUBTITLE,
'text_var' => Merakomis::$_ORG_TABLE_TEXT,
];
echo je($res);
}
}