GS_DataObject.php

Summary
GS_DataObject.php
GS_DataObjectGS DB object abstraction
DB_DataObjectSuperclass redefining DB_DataObject with GS specific functions/overrides.
_autoloadClassRedefine autoload to avoid those annoying PEAR::DB strict standards warnings it causes.
_connectWraps the _connect call so we don’t throw E_STRICT warnings during it.
_loadConfigWwraps the _loadConfig call so we don’t throw E_STRICT warnings during it.
countWraps the count call so we don’t throw E_STRICT warnings during it.
debugLevelWraps the debugLevel call so we don’t throw E_STRICT warnings during it.
deleteDelete calls PEAR::isError from DB_DataObject, so let’s make that disappear too
factoryAvoid those annoying PEAR::DB strict standards warnings it causes.
getAvoid those annoying PEAR::DB strict standards warnings it causes.
fetchAvoid those annoying PEAR::DB strict standards warnings it causes.
findAvoid those annoying PEAR::DB strict standards warnings it causes.
fetchRowAvoid those annoying PEAR::DB strict standards warnings it causes.
insertAvoid those annoying PEAR::DB strict standards warnings it causes.
joinAddAvoid those annoying PEAR::DB strict standards warnings it causes.
linksAvoid those annoying PEAR::DB strict standards warnings it causes.
updateAvoid those annoying PEAR::DB strict standards warnings it causes.
staticGetAvoid those annoying PEAR::DB strict standards warnings it causes.
staticGetAutoloadTableAvoid those annoying PEAR::DB strict standards warnings it causes.

GS_DataObject

GS DB object abstraction

postActiv

the micro-blogging software

Copyright

Copyright © 2016-2017, Maiyannah Bishop

Derived from code copyright various sources

  • GNU Social © 2013-2016, Free Software Foundation, Inc
  • StatusNet © 2008-2012, StatusNet, Inc

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program.  If not, see http://www.gnu.org/licenses/.

https://www.gnu.org/licenses/agpl.html

About

GS DB object abstraction

How many bloody redefinitions of DataObject do we need?  Basically this one exists to suppress errors which is a BAD IDEA and we should rectify the errors instead.

PHP version

Tested with PHP 7

File Authors

Web

DB_DataObject

Superclass redefining DB_DataObject with GS specific functions/overrides.

Summary
_autoloadClassRedefine autoload to avoid those annoying PEAR::DB strict standards warnings it causes.
_connectWraps the _connect call so we don’t throw E_STRICT warnings during it.
_loadConfigWwraps the _loadConfig call so we don’t throw E_STRICT warnings during it.
countWraps the count call so we don’t throw E_STRICT warnings during it.
debugLevelWraps the debugLevel call so we don’t throw E_STRICT warnings during it.
deleteDelete calls PEAR::isError from DB_DataObject, so let’s make that disappear too
factoryAvoid those annoying PEAR::DB strict standards warnings it causes.
getAvoid those annoying PEAR::DB strict standards warnings it causes.
fetchAvoid those annoying PEAR::DB strict standards warnings it causes.
findAvoid those annoying PEAR::DB strict standards warnings it causes.
fetchRowAvoid those annoying PEAR::DB strict standards warnings it causes.
insertAvoid those annoying PEAR::DB strict standards warnings it causes.
joinAddAvoid those annoying PEAR::DB strict standards warnings it causes.
linksAvoid those annoying PEAR::DB strict standards warnings it causes.
updateAvoid those annoying PEAR::DB strict standards warnings it causes.
staticGetAvoid those annoying PEAR::DB strict standards warnings it causes.
staticGetAutoloadTableAvoid those annoying PEAR::DB strict standards warnings it causes.

_autoloadClass

public function _autoloadClass($class,  
$table = false)

Redefine autoload to avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

_connect

public function _connect()

Wraps the _connect call so we don’t throw E_STRICT warnings during it.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

_loadConfig

public function _loadConfig()

Wwraps the _loadConfig call so we don’t throw E_STRICT warnings during it.  Doesn’t actually return anything, but we’ll follow the same model as the rest of the wrappers.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

count

public function count($countWhat =  false,
$whereAddOnly =  false)

Wraps the count call so we don’t throw E_STRICT warnings during it.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

debugLevel

static public function debugLevel($v =  null)

Wraps the debugLevel call so we don’t throw E_STRICT warnings during it.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

delete

public function delete($useWhere =  false)

Delete calls PEAR::isError from DB_DataObject, so let’s make that disappear too

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

factory

static public function factory($table =  '')

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

get

public function get($k =  null,
$v =  null)

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

fetch

public function fetch()

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

find

public function find($n =  false)

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

fetchRow

public function fetchRow($row =  null)

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

insert

public function insert()

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

joinAdd

public function joinAdd($obj =  false,
$joinType = 'INNER',
$joinAs = false,
$joinCol = false)

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

links

public function links()

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

update

public function update($dataObject =  false)

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

staticGet

static public function staticGet($class,  
$k,  
$v =  null)

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

staticGetAutoloadTable

public function staticGetAutoloadTable($table)

Avoid those annoying PEAR::DB strict standards warnings it causes.

This is a dirty hack and suppressing errors, we shouldn’t do this and it should be written out.

public function _autoloadClass($class,  
$table = false)
Redefine autoload to avoid those annoying PEAR::DB strict standards warnings it causes.
public function _connect()
Wraps the _connect call so we don’t throw E_STRICT warnings during it.
public function _loadConfig()
Wwraps the _loadConfig call so we don’t throw E_STRICT warnings during it.
public function count($countWhat =  false,
$whereAddOnly =  false)
Wraps the count call so we don’t throw E_STRICT warnings during it.
static public function debugLevel($v =  null)
Wraps the debugLevel call so we don’t throw E_STRICT warnings during it.
public function delete($useWhere =  false)
Delete calls PEAR::isError from DB_DataObject, so let’s make that disappear too
static public function factory($table =  '')
Avoid those annoying PEAR::DB strict standards warnings it causes.
public function get($k =  null,
$v =  null)
Avoid those annoying PEAR::DB strict standards warnings it causes.
public function fetch()
Avoid those annoying PEAR::DB strict standards warnings it causes.
public function find($n =  false)
Avoid those annoying PEAR::DB strict standards warnings it causes.
public function fetchRow($row =  null)
Avoid those annoying PEAR::DB strict standards warnings it causes.
public function insert()
Avoid those annoying PEAR::DB strict standards warnings it causes.
public function joinAdd($obj =  false,
$joinType = 'INNER',
$joinAs = false,
$joinCol = false)
Avoid those annoying PEAR::DB strict standards warnings it causes.
public function links()
Avoid those annoying PEAR::DB strict standards warnings it causes.
public function update($dataObject =  false)
Avoid those annoying PEAR::DB strict standards warnings it causes.
static public function staticGet($class,  
$k,  
$v =  null)
Avoid those annoying PEAR::DB strict standards warnings it causes.
public function staticGetAutoloadTable($table)
Avoid those annoying PEAR::DB strict standards warnings it causes.