示例#1
0
 protected function __construct($app)
 {
     parent::__construct($app);
     $this->userInfo = null;
     $this->userName = null;
     $this->sessionId = null;
 }
示例#2
0
 protected function __construct($app, $siteConn, $resId, $className, $config, $configPath, $featureIdProp = null)
 {
     parent::__construct($app);
     $this->useTransaction = false;
     $this->limit = -1;
     $this->pageSize = -1;
     $this->transform = null;
     $this->configPath = $configPath;
     $this->featureId = null;
     $this->featureIdProp = $featureIdProp;
     $this->featureSourceId = $resId;
     $this->siteConn = $siteConn;
     $this->featSvc = $this->siteConn->CreateService(MgServiceType::FeatureService);
     $this->className = $className;
     $this->propertyList = array();
     $this->computedPropertyList = array();
     $this->EnsureQualifiedClassName();
     if (array_key_exists("Properties", $config)) {
         $cfgProps = $config["Properties"];
         $this->propertyList = $cfgProps;
     }
     if (array_key_exists("ComputedProperties", $config)) {
         $cfgComputedProps = $config["ComputedProperties"];
         $this->computedPropertyList = $cfgComputedProps;
     }
     if (array_key_exists("PageSize", $config)) {
         $this->pageSize = intval($config["PageSize"]);
     }
     if (array_key_exists("MaxCount", $config)) {
         $this->limit = intval($config["MaxCount"]);
     }
     if (array_key_exists("TransformTo", $config)) {
         $tokens = explode(":", $this->className);
         $schemaName = $tokens[0];
         $className = $tokens[1];
         $this->transform = MgUtils::GetTransform($this->featSvc, $this->featureSourceId, $schemaName, $className, $config["TransformTo"]);
     }
     if (array_key_exists("UseTransaction", $config)) {
         $this->useTransaction = $config["UseTransaction"] === true || $config["UseTransaction"] === "true";
     }
     $this->InitAdapterConfig($config);
 }