Packageindex Classtrees Modulegroups Elementlist Report XML Files

pxdb.metadata

pxdb_view

pxdb_basis
   |
  +-- pxdb_view

public class pxdb_view extends pxdb_basis

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

 

Methods inherited from pxdb_basis

pxdb_basis, import, &fetch_datatype, &fetch_relationship, &fetch_dbfield, &fetch_typesfield, &fetch_view, arr_dbfields, arr_datatypes, arr_parent_datatypes, arr_child_datatypes, arr_relationships, arr_views, reorder, move, get_groups, get_users

Public Method Summary

void pxdb_view( $id)
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.
void get_id()

string get_view()

void set_view(string $view)

integer get_datatype()

void set_datatype(integer $datatype)

string get_label()

void set_label(string $label)

string get_description()

void set_description(string $description)

array arr_typesfields([ string $mask, string $constraint_sql ])
Returns an array of typesfields for this object.Warning: documentation is missing.
void arr_viewfields([ string $mask, string $constraint_sql ])
Get all viewfields for this view.Warning: documentation is missing.
integer save()
The main function to handle inserts & updates.

Private Method Summary

object [unknown] &factory(integer $datatype, string $view)
Return a pxdb_view object based on a datatype and view name
object pxdb_typesfield &fetch_viewfield([ boolean $reset ])
Wrapper for parent method.Warning: documentation is missing.
integer _new_weight()
This function figures out what the next (max+5) weight should be.
boolean delete( $id)
Function to delete a relationship entry.
object [unknown] &fetch_object_view(integer $dt, string $view)
Alternate contruction method to get a pxdb_view object based on the
void set_id( $id)
Warning: documentation is missing.

Fields inherited from pxdb_basis

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

Public Method Details

pxdb_view

public void pxdb_view( $id)

 

Parameter
$id
Warning: documentation is missing.
Returns void


read

public void read()

 

Returns void


load

public void load()

 

Warning: documentation is missing.

Returns void


get_id

public void get_id()

 

Returns void


get_view

public string get_view()

 

Returns string


set_view

public void set_view(string $view)

 

Parameter
string $view
Returns void


get_datatype

public integer get_datatype()

 

Returns integer


set_datatype

public void set_datatype(integer $datatype)

 

Parameter
integer $datatype
Returns void


get_label

public string get_label()

 

Returns string


set_label

public void set_label(string $label)

 

Parameter
string $label
Returns void


get_description

public string get_description()

 

Returns string


set_description

public void set_description(string $description)

 

Parameter
string $description
Returns void


arr_typesfields

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

  Gets all typesfields that are referred to in the viewfields for the current view. The typesfields entries are ordered by the viewfields orderby column (not the typesfields column).

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.


arr_viewfields

public void arr_viewfields([ 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


save

public integer save()

 

Returns integer

The id of saved or craeted view.


Private Method Details

&factory

private object [unknown] &factory(integer $datatype, string $view)

 

Parameter
integer $datatype
id
string $view
name
Returns object [unknown]


&fetch_viewfield

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

 

Warning: documentation is missing.

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

object


_new_weight

private integer _new_weight()

 

Returns integer

New weight.


delete

private boolean delete( $id)

 

Parameter
$id
Warning: documentation is missing.
Returns boolean


&fetch_object_view

private object [unknown] &fetch_object_view(integer $dt, string $view)

  datatype and view name. Duplicates factory method.

Parameter
integer $dt
id
string $view
name
Returns object [unknown]


set_id

private void set_id( $id)

 

Warning: documentation is missing.

Parameter
$id
Warning: documentation is missing.
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