<commit_before><?
require_once("class.ini.php");
use Zend\Session\Container as SessionContainer;

$counter = 0;


/**
 * Class editTable
 * @property Core2\Acl $acl
 */
class editTable extends initEdit {
	public $selectSQL				= array();
	public $buttons					= array();
	public $params					= array();
	public $modal					= array();
	public $saveConfirm				= "";
	public $SQL						= "";
	public $HTML					= "";
	public $readOnly				= false;
	public $table   = '';
	public $error   = '';
	protected $controls				= array();
	protected $resource				= "";
	protected $cell					= array();
	protected $template				= '';
	private $main_table_id			= "";
	private $beforeSaveArr			= array();
	private $isSaved 				= false;
	private $scripts		        = array();
	private $sess_form		        = '';
	private $uniq_class_id		    = '';


    /**
     * editTable constructor.
     * @param string $name
     */
	public function __construct($name) {
		parent::__construct();
		$this->resource 		= $name;
		$this->main_table_id 	= "main_" . $name;
		$this->template 		= '<div id="' . $this->main_table_id . '_default">[default]</div>';
		$this->uniq_class_id   	= crc32($name . microtime());

		global $counter;
		$counter = 0;
		$this->acl = new stdClass();
		foreach ($this->types as $acl_type) {
			$this->acl->$acl_type = $this->checkAcl($this->resource, $acl_type);
		}


		$this->sess_form = new SessionContainer('Form');<commit_msg>рефакторинг<commit_after><?
require_once("class.ini.php");
use Zend\Session\Container as SessionContainer;

$counter = 0;


/**
 * Class editTable
 * @property Core2\Acl $acl
 */
class editTable extends initEdit {
	public $selectSQL				= array();
	public $buttons					= array();
	public $params					= array();
	public $modal					= array();
	public $saveConfirm				= "";
	public $SQL						= "";
	public $HTML					= "";
	public $readOnly				= false;
	public $table   = '';
	public $error   = '';
	protected $controls				= array();
	protected $resource				= "";
	protected $cell					= array();
	protected $template				= '';
	private $main_table_id			= "";
	private $beforeSaveArr			= array();
	private $isSaved 				= false;
	private $scripts		        = array();
	private $sess_form		        = '';
	private $uniq_class_id		    = '';


    /**
     * editTable constructor.
     * @param string $name
     */
	public function __construct($name) {

		parent::__construct();
		$this->resource 		= $name;
		$this->main_table_id 	= "main_" . $name;
		$this->template 		= '<div id="' . $this->main_table_id . '_default">[default]</div>';
		$this->uniq_class_id   	= crc32($name . microtime());

		global $counter;
		$counter = 0;
		$this->acl = new stdClass();
		foreach ($this->types as $acl_type) {
			$this->acl->$acl_type = $this->checkAcl($this->resource, $acl_type);
		}


		$this->sess_form = new SessionContainer('Form');
{'fraction_non_alphanumeric': 0.16977809087706938, 'fraction_numerical': 0.003522367030644593, 'mean_word_length': 3.057142857142857, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7190024', 'n_tokens_mistral': 1104, 'n_tokens_neox': 978, 'n_words': 211}