[ PHPXref.com ] [ Generated: Sun Jul 20 17:59:13 2008 ] [ GLPI 0.65 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/glpi/common/ -> classes.php (summary)

(no description)

File Size: 483 lines (12 kb)
Included or required: 5 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

DBmysql:: (19 methods):
  DBmysql()
  query()
  result()
  numrows()
  fetch_array()
  fetch_row()
  fetch_assoc()
  data_seek()
  insert_id()
  num_fields()
  field_name()
  field_flags()
  list_tables()
  table_name()
  list_fields()
  affected_rows()
  errno()
  error()
  close()

CommonItem:: (6 methods):
  getfromDB()
  setType()
  getType()
  getName()
  getNameID()
  getLink()


Class: DBmysql  - X-Ref

Database class for Mysql

DBmysql()   X-Ref
Constructor / Connect to the MySQL Database

Use dbhost, dbuser, dbpassword and dbdefault
Die if connection or database selection failed

return: nothing

query($query)   X-Ref
Execute a MySQL query

param: $query Query to execute
return: Query result handler

result($result, $i, $field)   X-Ref
Give result from a mysql result

param: $result MySQL result handler
param: $i Row to give
param: $field Field to give
return: Value of the Row $i and the Field $field of the Mysql $result

numrows($result)   X-Ref
Give number of rows of a Mysql result

param: $result MySQL result handler
return: number of rows

fetch_array($result)   X-Ref
Fetch array of the next row of a Mysql query

param: $result MySQL result handler
return: result array

fetch_row($result)   X-Ref
Fetch row of the next row of a Mysql query

param: $result MySQL result handler
return: result row

fetch_assoc($result)   X-Ref
Fetch assoc of the next row of a Mysql query

param: $result MySQL result handler
return: result associative array

data_seek($result,$num)   X-Ref
Move current pointer of a Mysql result to the specific row

param: $result MySQL result handler
param: $seek row to move current pointer
return: boolean

insert_id()   X-Ref
Give ID of the last insert item by Mysql

return: item ID

num_fields($result)   X-Ref
Give number of fields of a Mysql result

param: $result MySQL result handler
return: number of fields

field_name($result,$nb)   X-Ref
Give name of a field of a Mysql result

param: $result MySQL result handler
param: $nb number of column of the field
return: name of the field

field_flags($result,$field)   X-Ref
No description

list_tables()   X-Ref
No description

table_name($result,$nb)   X-Ref
No description

list_fields($table)   X-Ref
No description

affected_rows()   X-Ref
No description

errno()   X-Ref
No description

error()   X-Ref
No description

close()   X-Ref
No description

Class: CommonItem  - X-Ref

Common Item of GLPI : Global simple interface to items - abstraction usage

getfromDB($device_type,$id_device)   X-Ref
Get an Object / General Function

Create a new Object depending of $device_type and Get the item with the ID $id_device

param: $device_type Device Type ID of the object
param: $id_device Device ID of the object
return: boolean : object founded and loaded

setType($device_type)   X-Ref
Set the device type

param: $device_type Device Type ID of the object

getType()   X-Ref
Get The Type Name of the Object

return: String: name of the object type in the current language

getName()   X-Ref
Get The Name of the Object

return: String: name of the object in the current language

getNameID()   X-Ref
No description

getLink()   X-Ref
Get The link to the Object

return: String: link to the object type in the current language



[ Powered by PHPXref - Served by Debian GNU/Linux ]