@@ -701,10 +701,7 @@ protected function paramsMapOptArrayTypes() {
701
701
return array ('b ' , 'c ' );
702
702
}
703
703
704
- /**
705
- * @internal has to be public for PHP 5.3 compatability
706
- */
707
- public function sanitizeTS ($ ts ) {
704
+ protected function sanitizeTS ($ ts ) {
708
705
if (is_string ($ ts )) {
709
706
return date ('Y-m-d H:i:s ' , strtotime ($ ts ));
710
707
}
@@ -714,10 +711,7 @@ public function sanitizeTS($ts) {
714
711
return '' ;
715
712
}
716
713
717
- /**
718
- * @internal has to be public for PHP 5.3 compatability
719
- */
720
- public function sanitize ($ input ) {
714
+ protected function sanitize ($ input ) {
721
715
if (is_object ($ input )) {
722
716
if ($ input instanceof DateTime) {
723
717
return new MeekroDBParsedQuery ('? ' , array ($ input ->format ('Y-m-d H:i:s ' )));
@@ -733,10 +727,7 @@ public function sanitize($input) {
733
727
return new MeekroDBParsedQuery ('? ' , array ($ input ));
734
728
}
735
729
736
- /**
737
- * @internal has to be public for PHP 5.3 compatability
738
- */
739
- public function formatName ($ name , $ can_join =false ) {
730
+ protected function formatName ($ name , $ can_join =false ) {
740
731
if (is_array ($ name )) {
741
732
if ($ can_join ) return implode ('. ' , array_map (array ($ this , 'formatName ' ), $ name ));
742
733
throw new MeekroDBException ("Invalid column/table name " );
@@ -745,11 +736,8 @@ public function formatName($name, $can_join=false) {
745
736
if ($ this ->db_type () == 'pgsql ' ) $ char = '" ' ;
746
737
return $ char . str_replace ($ char , $ char . $ char , $ name ) . $ char ;
747
738
}
748
-
749
- /**
750
- * @internal has to be public for PHP 5.3 compatability
751
- */
752
- public function intval ($ var ) {
739
+
740
+ protected function intval ($ var ) {
753
741
if (PHP_INT_SIZE == 8 ) return intval ($ var );
754
742
return floor (doubleval ($ var ));
755
743
}
0 commit comments