Subversion Repositories oidplus

Rev

Rev 635 | Rev 1086 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 635 Rev 1050
Line 15... Line 15...
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
17
 * limitations under the License.
18
 */
18
 */
19
 
19
 
20
if (!defined('INSIDE_OIDPLUS')) die();
20
namespace ViaThinkSoft\OIDplus;
21
 
21
 
22
class OIDplusQueryResultSQLite3 extends OIDplusQueryResult {
22
class OIDplusQueryResultSQLite3 extends OIDplusQueryResult {
23
        protected $no_resultset;
23
        protected $no_resultset;
24
        protected $res;
24
        protected $res;
25
        protected $all_results = array();
25
        protected $all_results = array();
Line 80... Line 80...
80
                if ($this->no_resultset) throw new OIDplusException(_L('The query has returned no result set (i.e. it was not a SELECT query)'));
80
                if ($this->no_resultset) throw new OIDplusException(_L('The query has returned no result set (i.e. it was not a SELECT query)'));
81
 
81
 
82
                $ary = $this->fetch_array();
82
                $ary = $this->fetch_array();
83
                if (!$ary) return null;
83
                if (!$ary) return null;
84
 
84
 
85
                $obj = new stdClass;
85
                $obj = new \stdClass;
86
                foreach ($ary as $name => $val) {
86
                foreach ($ary as $name => $val) {
87
                        $obj->$name = $val;
87
                        $obj->$name = $val;
88
                }
88
                }
89
                return $obj;
89
                return $obj;
90
        }
90
        }