Пример #1
0
 public function __construct($anvilDataConnection, $table, $id = 0)
 {
     $this->addProperty('id', 'event_id', self::DATA_TYPE_NUMBER, $id);
     $this->addProperty('dts', 'dts', self::DATA_TYPE_ADD_DTS);
     $this->addProperty('eventTypeID', 'event_type_id', self::DATA_TYPE_NUMBER, 0, 'etid');
     $this->addProperty('applicationID', 'application_id', self::DATA_TYPE_NUMBER, 0, 'aid');
     $this->addProperty('version', 'version', self::DATA_TYPE_STRING, null, 'ver');
     $this->addProperty('userIP', 'user_ip', self::DATA_TYPE_STRING, null, 'uip');
     $this->addProperty('userID', 'user_id', self::DATA_TYPE_NUMBER, 0, 'uid');
     $this->addProperty('name', 'name', self::DATA_TYPE_STRING, null, 'name');
     $this->addProperty('number', 'number', self::DATA_TYPE_STRING, null, 'num');
     $this->addProperty('details', 'details', self::DATA_TYPE_STRING, null, 'det');
     $this->addProperty('file', 'file', self::DATA_TYPE_STRING, null, 'file');
     $this->addProperty('line', 'line', self::DATA_TYPE_STRING, null, 'line');
     $this->addProperty('trace', 'trace', self::DATA_TYPE_STRING, null, 'trc');
     parent::__construct($anvilDataConnection, $table, $id, '');
 }
Пример #2
0
 public function __construct($dataConnection, $table, $id = 0)
 {
     //        global $phpAnvil;
     //        $this->enableLog();
     //        $this->addProperty('id', $table, 'fuse_event_id', self::DATA_TYPE_NUMBER);
     //        $this->addProperty('dts', $table, 'dts', self::DATA_TYPE_ADD_DTS);
     //        $this->addProperty('fuseEventTypeID', $table, 'fuse_event_type_id', self::DATA_TYPE_NUMBER);
     //        $this->addProperty('fuseApplicationID', $table, 'fuse_application_id', self::DATA_TYPE_NUMBER);
     //        $this->addProperty('version', $table, 'version', self::DATA_TYPE_STRING);
     //        $this->addProperty('userIP', $table, 'user_ip', self::DATA_TYPE_STRING);
     //        $this->addProperty('userID', $table, 'user_id', self::DATA_TYPE_NUMBER);
     //        $this->addProperty('name', $table, 'name', self::DATA_TYPE_STRING);
     //        $this->addProperty('number', $table, 'number', self::DATA_TYPE_STRING);
     //        $this->addProperty('details', $table, 'details', self::DATA_TYPE_STRING);
     //        $this->addProperty('file', $table, 'file', self::DATA_TYPE_STRING);
     //        $this->addProperty('line', $table, 'line', self::DATA_TYPE_STRING);
     //        $this->addProperty('trace', $table, 'trace', self::DATA_TYPE_STRING);
     //		parent::__construct($anvilDataConnection, $table);
     parent::__construct($table);
     $this->properties->id->fieldName = 'fuse_event_id';
     $this->dataConnection = $dataConnection;
     $this->id = $id;
     //        $this->_logDebug($this);
 }
Пример #3
0
 public function __construct($anvilDataConnection, $dataFrom, $dataFilter = '')
 {
     global $phpAnvil;
     parent::__construct($anvilDataConnection, $phpAnvil->regional, $phpAnvil->modelDictionary, $dataFrom, $dataFilter);
 }