/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to classes/request.php

  • Committer: Suren A. Chilingaryan
  • Date: 2020-02-25 03:16:18 UTC
  • Revision ID: csa@suren.me-20200225031618-57d452egb2mpodhh
Optimize Cache Administrator (inroduces new REQUEST flags and significant changes to CACHEDB)

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
    return new $view($this, $opts);
319
319
 }
320
320
 
 
321
 function CreateCacheSet(REQUESTList $list = NULL) {
 
322
    $req = $this->CreateDataRequest();
 
323
    return $req->CreateCacheSet($list);
 
324
 }
 
325
 
321
326
 function CreateServerRequest() {
322
327
    return new SERVERRequest();
323
328
 }
367
372
 
368
373
 const LIST_ALL = 0x0001;
369
374
 const LIST_WILDCARDED = 0x0002;
370
 
 const NEED_INFO = 0x0004;
371
 
 const NEED_COUNT = 0x0008;
372
 
 const NEED_ITEMINFO = 0x0010;
373
 
 const NEED_AXISINFO = 0x0020;
374
 
 const ONLY_AXISINFO = 0x0040;
375
 
 const NEED_READERINFO = 0x0080;
376
 
 const LIST_VIRTUAL = 0x0100;           // Include Virtual Groups into the List
377
 
 const LIST_COMPLEX = 0x0200;           // Include Complex Groups into the List
378
 
 const LIST_CUSTOM = 0x0400;            // Include Custom Items into the Full List (always listed if in the mask)
379
 
 const SKIP_UNCACHED = 0x0800;
380
 
 const SKIP_CHECKS = 0x1000;
381
 
 const SKIP_GENERATED = 0x2000;
 
375
 const LIST_VIRTUAL = 0x0004;           // Include Virtual Groups into the List
 
376
 const LIST_COMPLEX = 0x0008;           // Include Complex Groups into the List
 
377
 const LIST_CUSTOM = 0x0010;            // Include Custom Items into the Full List (always listed if in the mask)
 
378
 const SKIP_UNCACHED = 0x0020;
 
379
 const SKIP_CHECKS = 0x0040;
 
380
 const SKIP_GENERATED = 0x0080;
 
381
 const NEED_INFO = 0x0100;
 
382
 const NEED_COUNT = 0x0200;
 
383
 const NEED_ITEMINFO = 0x0400;
 
384
 const NEED_AXISINFO = 0x0800;
 
385
 const ONLY_AXISINFO = 0x1000;
 
386
 const NEED_STATINFO = 0x2000;
 
387
 const NEED_READERINFO = 0x4000;
 
388
 const PREFER_EXACTINFO = 0x8000;
 
389
 
382
390
 
383
391
 const PRINT_ERRORS = 0x10000000;
384
392
 const THROW_ERRORS = 0x20000000;
389
397
 
390
398
 const READER_FORBID_CACHEREADER = 1;
391
399
 
 
400
 const PLOTTER_NEED_LEGEND = 1;
 
401
 
392
402
 function __construct(&$props = NULL) {
393
403
    global $DEFAULT_PROPS;
394
404
 
1114
1124
    return new SIMPLECacheSet($cache, $mask);
1115
1125
 }
1116
1126
 
1117
 
 function CreateCacheSet(REQUESTList $list) {
1118
 
    return new REQUESTListCacheSet($list);
 
1127
 function CreateCacheSet(REQUESTList $list = NULL) {
 
1128
    if ($list) 
 
1129
        return new REQUESTListCacheSet($list);
 
1130
 
 
1131
    $rdr = $req->CreateReader();
 
1132
    $group = $rdr->CreateGroup();
 
1133
    $mask = NULL;
 
1134
    return $rdr->CreateCacheSet($group, $mask);
1119
1135
 }
1120
1136
 
1121
1137
 function CreateSimpleRequestSet(MASK $mask = NULL, LOGGROUP $grp = NULL, $type = "GROUPRequest") {
1158
1174
    return new INTERVAL($iinfo, $rdr, $grp, $flags);
1159
1175
 }
1160
1176
 
1161
 
 function CreatePlotter() {
 
1177
 function CreatePlotter($flags = 0) {
1162
1178
    global $ADEI;
 
1179
    if ($flags&REQUEST::PLOTTER_NEED_LEGEND) {
 
1180
        $ADEI->RequireClass("drawlegend");
 
1181
        return new DRAWLegend($this);
 
1182
    }
 
1183
    
1163
1184
    $ADEI->RequireClass("draw");
1164
 
 
1165
1185
    return new DRAW($this);
1166
1186
 }
1167
 
 
 
1187
 
1168
1188
 function GetFormatInfoInternal() {
1169
1189
    global $ADEI_SYSTEM_FORMATS;
1170
1190
    global $EXPORT_FORMATS;