Class midcom_db_person

Description

MidCOM Legacy Database Abstraction Layer

This class encaspulates a classic MidgardPerson with its original features.

Preliminary Implementation:

Be aware that this implementation is incomplete, and grows on a is-needed basis.

Located in /midcom.core/midcom/db/person.php (line 25)

__midcom_baseclasses_database_person
   |
   --midcom_baseclasses_database_person
      |
      --midcom_db_person
Direct descendents
Class Description
 class net_nemein_registrations_registrar Event registration system: Registrar class
Method Summary
 midcom_db_person midcom_db_person ([mixed $id = null])
 bool add_to_group (string $name)
Variables
Methods
Constructor midcom_db_person (line 35)

The default constructor will create an empty object. Optionally, you can pass an object ID or GUID to the object which will then initialize the object with the corresponding DB instance.

midcom_db_person midcom_db_person ([mixed $id = null])
  • mixed $id: A valid object ID or GUID, omit for an empty object.
add_to_group (line 60)

Adds a user to a given Midgard Group. Calle must ensure access permissions are right.

  • return: Indicating success.
  • todo: Check if user is already assigned to the group.
bool add_to_group (string $name)
  • string $name: The name of the group we should be added to.
new_query_builder (line 46)

Overwrite the query builder getter with a version retrieving the right type.

We need a better solution here in DBA core actually, but it will be difficult to do this as we cannot determine the current class in a polymorphic environment without having a this (this call is static).

void new_query_builder ()

Redefined in descendants as:

Inherited Methods

Inherited From midcom_baseclasses_database_person

 midcom_baseclasses_database_person::midcom_baseclasses_database_person()
 midcom_baseclasses_database_person::_on_created()
 midcom_baseclasses_database_person::_on_deleted()
 midcom_baseclasses_database_person::_on_loaded()
 midcom_baseclasses_database_person::_on_updated()
 midcom_baseclasses_database_person::_update_computed_members()

Documentation generated on Tue, 15 Aug 2006 12:50:48 +0300 by phpDocumentor 1.3.0RC3