Packageindex Classtrees Modulegroups Elementlist Report XML Files

pxdb.metadata

pxdb_datatype

pxdb_basis
   |
  +-- pxdb_datatype

public class pxdb_datatype extends pxdb_basis

to reduce database load

AuthorsHans Lellelid <hans@velum.net>
Version$Revision: 1.4 $

 

Methods inherited from pxdb_basis

pxdb_basis, import, &fetch_datatype, &fetch_relationship, &fetch_dbfield, &fetch_viewfield, arr_datatypes, arr_viewfields, get_groups, get_users

Public Method Summary

void pxdb_datatype([ integer $dt ])
Constructor: perform db query to get full row based on the relationship id.
void read()
Updates class vars from the database.
void load()
Load override: loads values from global scope into the class.Warning: documentation is missing.
integer get_id()

void set_id(integer $id)

string get_type()

void set_type(integer $type)

string get_expose()

void set_expose(string $expose)

integer get_weight()

void set_weight( $weight)

void get_label()

void set_label( $label)

void get_description()

void set_description( $description)

integer get_parent_relid()

void set_parent_relid(integer $parent_relid)

string get_weighted()

void set_weighted(string $weighted)

void arr_views([ string $mask, string $constraint_sql ])
Get all views for a specific datatype.Warning: documentation is missing.
void arr_dbfields([ string $mask, string $constraint_sql ])
Finds dbfields that are in use by this object.Warning: documentation is missing.
void arr_relationships([ string $mask, string $constraint_sql ])
Finds dbfields that are in use by this object.Warning: documentation is missing.
void arr_child_datatypes([ string $mask, string $constraint_sql ])
Get all child datatypes for a given datatype.Warning: documentation is missing.
void arr_parent_datatypes([ string $mask, string $constraint_sql ])
Get all parent datatypes for a given datatype.Warning: documentation is missing.
void move(array $dir)
Promote / demote (change 'weight') of datatype row.Warning: documentation is missing.
void save()
The main function to handle inserts & updates.
void delete([ integer $id ])
Function to delete a relationship entry.

Private Method Summary

object pxdb_typesfield &fetch_typesfield([ boolean $reset ])
Wrapper for parent method.Warning: documentation is missing.
object pxdb_typesfield &fetch_view([ boolean $reset ])
Wrapper for parent method.Warning: documentation is missing.
array arr_typesfields([ string $mask, string $constraint_sql ])
Returns an array of typesfields for this object.Warning: documentation is missing.
void reorder()
Re-orders the relationship weights.Warning: documentation is missing.
void _new_weight()
This function figures out what the next (max+5) weight should be.

Fields inherited from pxdb_basis

$debug, $errors, $_imported, $_fields, $_old_fields, $method

Public Method Details

pxdb_datatype

public void pxdb_datatype([ integer $dt ])

 

Parameter
integer $dt = >>null<<
The datatype id.
Returns void


read

public void read()

 

Returns void


load

public void load()

 

Warning: documentation is missing.

Returns void


get_id

public integer get_id()

 

Returns integer


set_id

public void set_id(integer $id)

 

Parameter
integer $id
Returns void


get_type

public string get_type()

 

Returns string

Datatype name


set_type

public void set_type(integer $type)

 

Parameter
integer $type
Returns void


get_expose

public string get_expose()

 

Returns string

'Y'/'N'


set_expose

public void set_expose(string $expose)

 

Parameter
string $expose
'Y'/'N'
Returns void


get_weight

public integer get_weight()

 

Returns integer


set_weight

public void set_weight( $weight)

 

Parameter
$weight
Warning: documentation is missing.
Returns void


get_label

public void get_label()

 

Returns void


set_label

public void set_label( $label)

 

Parameter
$label
Warning: documentation is missing.
Returns void


get_description

public void get_description()

 

Returns void


set_description

public void set_description( $description)

 

Parameter
$description
Warning: documentation is missing.
Returns void


get_parent_relid

public integer get_parent_relid()

 

Returns integer

Parent datatype ID


set_parent_relid

public void set_parent_relid(integer $parent_relid)

 

Parameter
integer $parent_relid
Parent datatype ID
Returns void


get_weighted

public string get_weighted()

 

Returns string


set_weighted

public void set_weighted(string $weighted)

 

Parameter
string $weighted
'Y'/'N'
Returns void


arr_views

public void arr_views([ string $mask, string $constraint_sql ])

 

Warning: documentation is missing.

Parameter
string $mask = >>''<<
The value to return for custom_field.
string $constraint_sql = >>null<<
WHERE-clause SQL to constrain results.
Returns void


arr_dbfields

public void arr_dbfields([ string $mask, string $constraint_sql ])

 

Warning: documentation is missing.

Parameter
string $mask = >>''<<
The value to return for custom_field.
string $constraint_sql = >>null<<
WHERE-clause SQL to constrain results.
Returns void


arr_relationships

public void arr_relationships([ string $mask, string $constraint_sql ])

 

Warning: documentation is missing.

Parameter
string $mask = >>''<<
The value to return for custom_field.
string $constraint_sql = >>null<<
WHERE-clause SQL to constrain results.
Returns void


arr_child_datatypes

public void arr_child_datatypes([ string $mask, string $constraint_sql ])

 

Warning: documentation is missing.

Parameter
string $mask = >>''<<
The value to return for custom_field.
string $constraint_sql = >>null<<
WHERE-clause SQL to constrain results.
Returns void


arr_parent_datatypes

public void arr_parent_datatypes([ string $mask, string $constraint_sql ])

 

Warning: documentation is missing.

Parameter
string $mask = >>''<<
The value to return for custom_field.
string $constraint_sql = >>null<<
WHERE-clause SQL to constrain results.
Returns void


move

public void move(array $dir)

  This function changes the order in which datatypes are displayed (on the list, in pull-downs, etc.).

Warning: documentation is missing.

Parameter
array $dir
Hash of variables needed: table, id, dir, id_col, weight_col, constraint_sql.
Returns void


save

public void save()

  Be sure you call load() before invoking this method if you want it to pull values from the global scope.

Returns void


delete

public void delete([ integer $id ])

 

Parameter
integer $id = >>null<<
The ID of the record we wish to remove.
Returns void


Private Method Details

&fetch_typesfield

private object pxdb_typesfield &fetch_typesfield([ boolean $reset ])

 

Warning: documentation is missing.

Parameter
boolean $reset = >>null<<
Whether to start over.
Returns object pxdb_typesfield

object


&fetch_view

private object pxdb_typesfield &fetch_view([ boolean $reset ])

 

Warning: documentation is missing.

Parameter
boolean $reset = >>null<<
Whether to start over.
Returns object pxdb_typesfield

object


arr_typesfields

private array arr_typesfields([ string $mask, string $constraint_sql ])

 

Warning: documentation is missing.

Parameter
string $mask = >>''<<
The value to return for custom_field.
string $constraint_sql = >>null<<
WHERE-clause SQL to constrain results.
Returns array

2-dim array of typsefields.


reorder

private void reorder()

  This is a cleanup method called by move() when there seem to be problems in the ordering of rows.

Warning: documentation is missing.

Returns void


_new_weight

private void _new_weight()

 

Returns void



Packageindex Classtrees Modulegroups Elementlist Report XML Files
Generated on Fri, 28 Apr 2006 19:07:22 -0400 by PHPDoc v1.5 www.phpdoc.de