ona  18.1.1
About: OpenNetAdmin provides a database managed inventory of your IP network (with Web and CLI interface).
  Fossies Dox: ona-18.1.1.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

functions_db.inc.php File Reference

Go to the source code of this file.

Functions

 db_pconnect ($type, $context_name)
 
 db_insert_record ($dbh=0, $table="", $insert="")
 
 db_update_record ($dbh=0, $table="", $where="", $insert="")
 
 db_delete_records ($dbh=0, $table="", $where="")
 
 db_get_record ($dbh=0, $table="", $where="", $order="")
 
 db_get_records ($dbh=0, $table="", $where="", $order="", $rows=-1, $offset=-1)
 
 ona_insert_record ($table="", $insert="")
 
 ona_update_record ($table="", $where="", $insert="")
 
 ona_delete_record ($table="", $where="")
 
 ona_get_record ($where="", $table="", $order="")
 
 ona_get_host_record ($array='', $order='')
 
 ona_get_block_record ($array='', $order='')
 
 ona_get_location_record ($array='', $order='')
 
 ona_get_interface_record ($array='', $order='')
 
 ona_get_domain_record ($array='', $order='')
 
 ona_get_dns_record ($array='', $order='')
 
 ona_get_dns_view_record ($array='', $order='')
 
 ona_get_config_record ($array='', $order='ctime DESC')
 
 ona_get_config_type_record ($array='', $order='')
 
 ona_get_dhcp_failover_group_record ($array)
 
 ona_get_custom_attribute_type_record ($array)
 
 ona_get_custom_attribute_record ($array)
 
 ona_get_model_record ($array)
 
 ona_get_manufacturer_record ($array)
 
 ona_get_device_type_record ($array)
 
 ona_get_device_record ($array)
 
 ona_get_role_record ($array)
 
 ona_get_subnet_record ($array)
 
 ona_get_subnet_type_record ($array)
 
 ona_get_vlan_record ($array)
 
 ona_get_vlan_campus_record ($array)
 
 ona_get_dhcp_option_record ($array)
 
 ona_get_dhcp_option_entry_record ($array)
 
 ona_get_dhcp_pool_record ($array)
 
 ona_get_dhcp_server_subnet_record ($array)
 
 ona_get_dns_server_domain_record ($array)
 
 ona_get_next_id ($tablename)
 
 ona_build_domain_name ($search='')
 
 ona_find_host ($search="")
 
 ona_find_domain ($fqdn="", $returndefault=0)
 
 ona_find_dns_record ($search="", $type='', $int_id=0)
 
 ona_find_location ($search="")
 
 ona_find_interface ($search="")
 
 ona_find_subnet ($search="")
 
 ona_find_device ($search="")
 
 ona_find_device_type ($search="")
 
 ona_find_subnet_type ($search="")
 
 ona_find_custom_attribute ($search="")
 
 ona_find_dhcp_option ($search="")
 
 ona_find_vlan ($vlan_search="", $campus_search="")
 
 ona_find_config ($options=array())
 

Variables

 $ADODB_COUNTRECS = 1
 
 $ADODB_CACHE_DIR = '/tmp'
 
 $ADODB_ANSI_PADDING_OFF = false
 
 $ADODB_LANG = 'en'
 
 $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC
 

Function Documentation

◆ db_delete_records()

◆ db_get_record()

◆ db_get_records()

◆ db_insert_record()

◆ db_pconnect()

db_pconnect (   $type,
  $context_name 
)

Definition at line 90 of file functions_db.inc.php.

References $base, $conf, $ona_contexts, $self, $type, and printmsg().

◆ db_update_record()

◆ ona_build_domain_name()

ona_build_domain_name (   $search = '')

◆ ona_delete_record()

ona_delete_record (   $table = "",
  $where = "" 
)

Definition at line 1041 of file functions_db.inc.php.

References $onadb.

◆ ona_find_config()

ona_find_config (   $options = array())

◆ ona_find_custom_attribute()

ona_find_custom_attribute (   $search = "")

◆ ona_find_device()

ona_find_device (   $search = "")

◆ ona_find_device_type()

ona_find_device_type (   $search = "")

◆ ona_find_dhcp_option()

ona_find_dhcp_option (   $search = "")

Definition at line 2397 of file functions_db.inc.php.

References $record, $self, $status, ona_get_dhcp_option_record(), and printmsg().

Referenced by dhcp_entry_add(), and dhcp_entry_modify().

◆ ona_find_dns_record()

ona_find_dns_record (   $search = "",
  $type = '',
  $int_id = 0 
)

◆ ona_find_domain()

◆ ona_find_host()

◆ ona_find_interface()

◆ ona_find_location()

ona_find_location (   $search = "")

◆ ona_find_subnet()

◆ ona_find_subnet_type()

ona_find_subnet_type (   $search = "")

Definition at line 2263 of file functions_db.inc.php.

References $record, $self, $status, ona_get_subnet_type_record(), and printmsg().

Referenced by subnet_add(), and subnet_modify().

◆ ona_find_vlan()

ona_find_vlan (   $vlan_search = "",
  $campus_search = "" 
)

◆ ona_get_block_record()

ona_get_block_record (   $array = '',
  $order = '' 
)

◆ ona_get_config_record()

ona_get_config_record (   $array = '',
  $order = 'ctime DESC' 
)

◆ ona_get_config_type_record()

ona_get_config_type_record (   $array = '',
  $order = '' 
)

◆ ona_get_custom_attribute_record()

◆ ona_get_custom_attribute_type_record()

◆ ona_get_device_record()

ona_get_device_record (   $array)

◆ ona_get_device_type_record()

ona_get_device_type_record (   $array)

◆ ona_get_dhcp_failover_group_record()

◆ ona_get_dhcp_option_entry_record()

ona_get_dhcp_option_entry_record (   $array)

◆ ona_get_dhcp_option_record()

ona_get_dhcp_option_record (   $array)

◆ ona_get_dhcp_pool_record()

ona_get_dhcp_pool_record (   $array)

◆ ona_get_dhcp_server_subnet_record()

ona_get_dhcp_server_subnet_record (   $array)

◆ ona_get_dns_record()

◆ ona_get_dns_server_domain_record()

ona_get_dns_server_domain_record (   $array)

Definition at line 1284 of file functions_db.inc.php.

References ona_get_record().

Referenced by domain_server_add(), domain_server_del(), and ws_display_list().

◆ ona_get_dns_view_record()

ona_get_dns_view_record (   $array = '',
  $order = '' 
)

Definition at line 1156 of file functions_db.inc.php.

References ona_get_record().

Referenced by dns_record_add(), dns_record_modify(), and ws_display_list().

◆ ona_get_domain_record()

◆ ona_get_host_record()

◆ ona_get_interface_record()

◆ ona_get_location_record()

ona_get_location_record (   $array = '',
  $order = '' 
)

◆ ona_get_manufacturer_record()

◆ ona_get_model_record()

◆ ona_get_next_id()

◆ ona_get_record()

◆ ona_get_role_record()

ona_get_role_record (   $array)

◆ ona_get_subnet_record()

◆ ona_get_subnet_type_record()

ona_get_subnet_type_record (   $array)

◆ ona_get_vlan_campus_record()

◆ ona_get_vlan_record()

◆ ona_insert_record()

ona_insert_record (   $table = "",
  $insert = "" 
)

Definition at line 1017 of file functions_db.inc.php.

References $onadb, and db_insert_record().

◆ ona_update_record()

ona_update_record (   $table = "",
  $where = "",
  $insert = "" 
)

Definition at line 1029 of file functions_db.inc.php.

References $onadb, and db_update_record().

Referenced by interface_move().

Variable Documentation

◆ $ADODB_ANSI_PADDING_OFF

$ADODB_ANSI_PADDING_OFF = false

◆ $ADODB_CACHE_DIR

$ADODB_CACHE_DIR = '/tmp'

Definition at line 45 of file functions_db.inc.php.

Referenced by ADODB_Active_Record\UpdateActiveTable().

◆ $ADODB_COUNTRECS

◆ $ADODB_FETCH_MODE

$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC
Examples
/fresh_work/warex/file_cache/linux/privat/ona-18.1.1.tar.gz/ona-18.1.1/www/include/adodb5/adodb-perf.inc.php.

Definition at line 70 of file functions_db.inc.php.

Referenced by ADORecordSet_mysqlt\__construct(), ADORecordset_oracle\__construct(), ADORecordSet_ldap\__construct(), ADORecordset_sybase\__construct(), ADORecordSet_ado\__construct(), ADORecordset_sqlite3\__construct(), ADORecordset_sqlite\__construct(), ADORecordset_informix72\__construct(), ADORecordSet_odbc\__construct(), ADORecordSet_ads\__construct(), ADORecordSet_pdo\__construct(), ADORecordSet_odbtp\__construct(), ADORecordSet_db2\__construct(), ADORecordset_ibase\__construct(), ADORecordset_mssqlnative\__construct(), ADORecordSet_postgres64\__construct(), ADORecordset_oci8\__construct(), adodb_perf\_DBParameter(), adodb_perf\_ExpensiveSQL(), adodb_perf\_SuspiciousSQL(), ADODB_DataDict\ChangeTableSQL(), ADODB_Active_Record\Load(), ADODB_odbc_oracle\MetaColumns(), ADODB_pdo_oci\MetaColumns(), ADODB_netezza\MetaColumns(), ADODB_sqlite3\MetaColumns(), ADODB_sqlite\MetaColumns(), ADODB_pdo_mysql\MetaColumns(), ADODB_oci8\MetaColumns(), ADODB_pdo_pgsql\MetaColumns(), ADODB_odbc_mssql\MetaColumns(), ADODB_pdo_sqlite\MetaColumns(), ADODB_informix72\MetaColumns(), ADODB_odbtp\MetaColumns(), ADODB_mssql\MetaColumns(), ADODB_ads\MetaColumns(), ADODB_odbc\MetaColumns(), ADODB_ibase\MetaColumns(), ADODB_db2\MetaColumns(), ADODB_mssqlnative\MetaColumns(), ADODB_odbc_mssql\MetaForeignKeys(), ADODB_db2\MetaForeignKeys(), ADODB_odbtp\MetaForeignKeys(), ADODB_mssql\MetaForeignKeys(), ADODB_mssqlnative\MetaForeignKeys(), ADODB_oci8\MetaForeignKeys(), ADODB_odbc_mssql\MetaIndexes(), ADODB_ibase\MetaIndexes(), ADODB_sqlite3\MetaIndexes(), ADODB_sqlite\MetaIndexes(), ADODB_oci8\MetaIndexes(), ADODB_mssql\MetaIndexes(), ADODB_mssqlnative\MetaIndexes(), ADODB_odbtp\MetaIndexes_mssql(), ADODB_odbc\MetaPrimaryKeys(), ADODB_odbc_mssql\MetaPrimaryKeys(), ADODB_db2\MetaPrimaryKeys(), ADODB_odbtp\MetaPrimaryKeys(), ADODB_mssql\MetaPrimaryKeys(), ADODB_mssqlnative\MetaPrimaryKeys(), ADODB_informix72\MetaProcedures(), ADODB_odbc\MetaTables(), ADODB_odbtp\MetaTables(), ADODB_db2\MetaTables(), ADODB_odbc_mssql\ServerInfo(), ADODB_mssql\ServerInfo(), ADODB_mssqlnative\ServerInfo(), adodb_perf\Tracer(), and ADODB_Active_Record\UpdateActiveTable().

◆ $ADODB_LANG

$ADODB_LANG = 'en'

Definition at line 55 of file functions_db.inc.php.

Referenced by adodb_errormsg().