Skip to content

Commit 92d5eab

Browse files
committed
change from public to private will privent json_encode($object) returning the table fields and last executed script
1 parent bac77c7 commit 92d5eab

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

object_factory/class.objectphp5.1pdofirebird.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function BeginObject()
6464
}
6565
// create attribute => type array map
6666
// needed for setup
67-
$this->string .= "public \$pog_attribute_type = array(\n\t\t";
67+
$this->string .= "private \$pog_attribute_type = array(\n\t\t";
6868
$this->string .= "\"".strtolower($this->objectName)."id\" => array(\"NUMERIC\", \"INTEGER\"),\n\t\t";
6969
$x = 0;
7070
foreach ($this->attributeList as $attribute)
@@ -80,7 +80,7 @@ function BeginObject()
8080
$x++;
8181
}
8282
$this->string .= ");\n\t";
83-
$this->string .= "public \$pog_query;";
83+
$this->string .= "private \$pog_query;";
8484
}
8585

8686
// -------------------------------------------------------------

object_factory/class.objectphp5.1pdomysql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function BeginObject()
6767
}
6868
// create attribute => type array map
6969
// needed for setup
70-
$this->string .= "public \$pog_attribute_type = array(\n\t\t";
70+
$this->string .= "private \$pog_attribute_type = array(\n\t\t";
7171
$this->string .= "\"".strtolower($this->objectName)."Id\" => array('db_attributes' => array(\"NUMERIC\", \"INT\")),\n\t\t";
7272
$x = 0;
7373
foreach ($this->attributeList as $attribute)
@@ -76,7 +76,7 @@ function BeginObject()
7676
$x++;
7777
}
7878
$this->string .= ");\n\t";
79-
$this->string .= "public \$pog_query;";
79+
$this->string .= "private \$pog_query;";
8080
}
8181

8282
// -------------------------------------------------------------

object_factory/class.objectphp5.1pdoodbc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function BeginObject()
6464
}
6565
// create attribute => type array map
6666
// needed for setup
67-
$this->string .= "public \$pog_attribute_type = array(\n\t\t";
67+
$this->string .= "private \$pog_attribute_type = array(\n\t\t";
6868
$this->string .= "\"".strtolower($this->objectName)."id\" => array(\"NUMERIC\", \"INT\"),\n\t\t";
6969
$x = 0;
7070
foreach ($this->attributeList as $attribute)
@@ -80,7 +80,7 @@ function BeginObject()
8080
$x++;
8181
}
8282
$this->string .= ");\n\t";
83-
$this->string .= "public \$pog_query;";
83+
$this->string .= "private \$pog_query;";
8484
}
8585

8686
// -------------------------------------------------------------

object_factory/class.objectphp5.1pdopgsql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function BeginObject()
6464
}
6565
// create attribute => type array map
6666
// needed for setup
67-
$this->string .= "public \$pog_attribute_type = array(\n\t\t";
67+
$this->string .= "private \$pog_attribute_type = array(\n\t\t";
6868
$this->string .= "\"".strtolower($this->objectName)."id\" => array(\"NUMERIC\", \"INTEGER\"),\n\t\t";
6969
$x = 0;
7070
foreach ($this->attributeList as $attribute)
@@ -80,7 +80,7 @@ function BeginObject()
8080
$x++;
8181
}
8282
$this->string .= ");\n\t";
83-
$this->string .= "public \$pog_query;";
83+
$this->string .= "private \$pog_query;";
8484
}
8585

8686
// -------------------------------------------------------------

object_factory/class.objectphp5.1pdosqlite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function BeginObject()
6464
}
6565
// create attribute => type array map
6666
// needed for setup
67-
$this->string .= "public \$pog_attribute_type = array(\n\t\t";
67+
$this->string .= "private \$pog_attribute_type = array(\n\t\t";
6868
$this->string .= "\"".strtolower($this->objectName)."id\" => array(\"NUMERIC\", \"INTEGER\"),\n\t\t";
6969
$x = 0;
7070
foreach ($this->attributeList as $attribute)
@@ -84,7 +84,7 @@ function BeginObject()
8484
$x++;
8585
}
8686
$this->string .= ");\n\t";
87-
$this->string .= "public \$pog_query;";
87+
$this->string .= "private \$pog_query;";
8888
}
8989

9090
// -------------------------------------------------------------

object_factory/class.objectphp5pogmysql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function BeginObject()
6565
}
6666
// create attribute => type array map
6767
// needed for setup
68-
$this->string .= "public \$pog_attribute_type = array(\n\t\t";
68+
$this->string .= "private \$pog_attribute_type = array(\n\t\t";
6969
$this->string .= "\"".strtolower($this->objectName)."Id\" => array('db_attributes' => array(\"NUMERIC\", \"INT\")),\n\t\t";
7070
$x = 0;
7171
foreach ($this->attributeList as $attribute)
@@ -74,7 +74,7 @@ function BeginObject()
7474
$x++;
7575
}
7676
$this->string .= ");\n\t";
77-
$this->string .= "public \$pog_query;";
77+
$this->string .= "private \$pog_query;";
7878
}
7979

8080
// -------------------------------------------------------------

0 commit comments

Comments
 (0)