function __construct()
 {
     parent::__construct();
     $geometryColumnsObj = new table("settings.geometry_columns_view");
     $this->rows = $geometryColumnsObj->getRecords();
     $this->rows = $this->rows['data'];
 }
Пример #2
0
 function __construct($table)
 {
     logfile::write($table . "\n");
     parent::__construct();
     preg_match("/^[\\w'-]*\\./", $table, $matches);
     $_schema = $matches[0];
     preg_match("/[\\w'-]*\$/", $table, $matches);
     $_table = $matches[0];
     if (!$_schema) {
         $table = $this->postgisschema . "." . $table;
     }
     logfile::write($table . "\n");
     $this->tableWithOutSchema = $_table;
     $sql = "select 1 from {$table}";
     $this->execQuery($sql);
     if ($this->PDOerror) {
         $this->exits = false;
     } else {
         $this->table = $table;
         $this->metaData = $this->getMetaData($this->table);
         $this->geomField = $this->getGeometryColumns($this->table, "f_geometry_column");
         $this->geomType = $this->getGeometryColumns($this->table, "type");
         $this->primeryKey = $this->getPrimeryKey($this->table);
         //$this->id = $this->getGeometryColumns($this->table, "id");
         $this->setType();
         $this->exits = true;
     }
 }
Пример #3
0
 function __construct($screenName, $userId = NULL, $tok = NULL, $sec = NULL)
 {
     parent::__construct();
     $this->screenName = $screenName;
     $this->postgisdb = "mygeocloud";
     $sql = "SELECT * FROM users WHERE screenname='{$screenName}'";
     $row = $this->fetchRow($this->execQuery($sql));
     if (!$row['screenname'] && $userId && $tok && $sec) {
         // We create twitter user if not exits
         $sql = "INSERT INTO users(userid,screenname,tok,sec) VALUES({$userId},'{$screenName}','{$tok}','{$sec}')";
         $result = $this->execQuery($sql);
         $this->userId = $userId;
         $this->tok = $tok;
         $this->sec = $sec;
     } elseif ($row['userid'] && $row['tok'] && $row['sec']) {
         // Twitter user exits
         $this->userId = $row['userid'];
         $this->tok = $row['tok'];
         $this->sec = $row['sec'];
     } elseif (!$row['screenname'] && !$userId && !$tok && !$sec) {
         $sql = "INSERT INTO users(userid,screenname,tok,sec) VALUES(NULL,'{$screenName}','NULL','NULL')";
         $result = $this->execQuery($sql);
         $this->userId = NULL;
         $this->tok = NULL;
         $this->sec = NULL;
     } elseif ($row['screenname']) {
         $this->userId = NULL;
         $this->tok = NULL;
         $this->sec = NULL;
     } else {
         //die("Could not init user object");
     }
 }
Пример #4
0
 function __construct($gmlSource)
 {
     parent::__construct();
     include_once "libs/class_xml_check.php";
     $check = new XML_check();
     if ($check->check_string($gmlSource)) {
         print "GML is well-formed\n";
         //print("Elements      : ".$check->get_xml_elements());
         //print("Attributes    : ".$check->get_xml_attributes());
         //print("Size          : ".$check->get_xml_size());
         //print("Text sections : ".$check->get_xml_text_sections());
         //print("Text size     : ".$check->get_xml_text_size());
     } else {
         print "GML is not well-formed. ";
         print $check->get_full_error() . "\n";
         print "Script terminated\n";
         die;
     }
     $this->gmlSource = $gmlSource;
     $this->gmlCon = new gmlConverter();
     require_once "XML/Unserializer.php";
     $unserializer_options = array('parseAttributes' => TRUE);
     $unserializer = new XML_Unserializer($unserializer_options);
     // Serialize the data structure
     $status = $unserializer->unserialize($this->gmlSource);
     $this->gmlArray = $unserializer->getUnserializedData();
     print date('l jS \\of F Y h:i:s A') . " GML serialized\n";
     // Check if XML is a ServiceException
     if ($unserializer->getRootName() == "ServiceExceptionReport") {
         print "The server returned an exception:\n";
         print $this->gmlSource . "\n";
         print "Script terminated\n";
         die;
     }
 }
Пример #5
0
 /**
  *
  *
  * @param unknown $safeFile
  * @param unknown $srid
  * @param unknown $file
  * @param unknown $pdo
  */
 function __construct($safeFile, $srid, $file, $pdo)
 {
     parent::__construct();
     $this->safeFile = $safeFile;
     $this->srid = $srid;
     $this->file = $file;
     $this->pdo = $pdo;
     fb($pdo);
 }
Пример #6
0
 function __construct()
 {
     parent::__construct();
     $sql = "SELECT * FROM settings.geometry_columns_view order by sort_id";
     $result = $this->execQuery($sql);
     $this->rows = $this->fetchAll($result);
     /*
     $geometryColumnsObj = new table("settings.geometry_columns_view");
     $this->rows = $geometryColumnsObj->getRecords();
     $this->rows = $this->rows['data'];
     */
 }
Пример #7
0
 function __construct($srs = "900913")
 {
     parent::__construct();
     $this->srs = $srs;
 }
Пример #8
0
 function __construct($userId)
 {
     parent::__construct();
     $this->userId = $userId;
     $this->postgisdb = "mapcentia";
 }
Пример #9
0
 function __construct($table)
 {
     parent::__construct();
     $this->table = $table;
 }
Пример #10
0
 function __construct($userObj)
 {
     parent::__construct();
     $this->userObj = $userObj;
 }
Пример #11
0
 function __construct()
 {
     parent::__construct();
 }
Пример #12
0
 function __construct()
 {
     parent::__construct();
     /** URL for REST request, see: https://dev.twitter.com/docs/api/1.1/ **/
     $this->settings = array('oauth_access_token' => "1252476258-DVO9x6mwnz05f5VL8WIsTx4XmpeUbOjDSs9hLXc", 'oauth_access_token_secret' => "regt6Vo082Bq3uaSDKyrGnHYPNSccncU6woXN1Mlw", 'consumer_key' => "AtDjL4UxITwrwBIMBicCQ", 'consumer_secret' => "GsFWDIR8bCuuigshxVhj9ZFK0lU00ecMm0ZeEd2Go");
 }
Пример #13
0
 function __construct($srs = "4326")
 {
     parent::__construct();
     $this->srs = $srs;
 }