Stud.IP  2.4 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
StudipAdmissionGroup Class Reference
Inheritance diagram for StudipAdmissionGroup:
Inheritance graph
Collaboration diagram for StudipAdmissionGroup:
Collaboration graph

Public Member Functions

 __construct ($id=null)
 restore ()
 restoreMembers ()
 store ()
 storeMembers ()
 getMemberIds ()
 getNumMembers ()
 isMember ($seminar_id)
 addMember ($seminar_id)
 deleteMember ($seminar_id)
 setData ($data, $reset=false)
 delete ()
 getValue ($field)
 getMemberValues ($field)
 setUniqueMemberValue ($field, $value)
 getUniqueMemberValue ($field, $values=null)
 setMinimumContingent ()
 checkUserSubscribedtoGroup ($user_id, $waitlist=false)
 checkUserSubscribedtoGroupWaitingList ($user_id)
- Public Member Functions inherited from SimpleORMap
 __clone ()
 getRelationOptions ($relation)
 getTableMetadata ()
 hasAutoIncrementColumn ()
 setId ($id)
 getId ()
 getNewId ()
 toArray ($only_these_fields=null)
 toArrayRecursive ($depth=1, $only_these_fields=null)
 getRelationValue ($relation, $field)
 setValue ($field, $value)
 __get ($field)
 __set ($field, $value)
 __isset ($field)
 offsetExists ($offset)
 offsetGet ($offset)
 offsetSet ($offset, $value)
 offsetUnset ($offset)
 getIterator ()
 count ()
 isField ($field)
 isAdditionalField ($field)
 isAliasField ($field)
 haveData ()
 isNew ()
 isDeleted ()
 setNew ($is_new)
 getWhereQuery ()
 triggerChdate ()
 isDirty ()
 isFieldDirty ($field)
 revertValue ($field)
 initRelation ($relation)
 resetRelation ($relation)

Static Public Member Functions

static GetAdmissionGroupBySeminarId ($seminar_id)
- Static Public Member Functions inherited from SimpleORMap
static expireTableScheme ()
static find ($id)
static exists ($id)
static countBySql ($where=1, $params=array())
static create ($data)
static import ($data)
static findBySQL ($where, $params=array())
static findThru ($foreign_key_value, $options)
static findEachBySQL ($callable, $where, $params=array())
static findMany ($pks=array(), $order= '')
static findEachMany ($callable, $pks=array(), $order= '')
static deleteBySQL ($where, $params=array())
static toObject ($id_or_object)
static __callStatic ($name, $arguments)

Data Fields

 $members = array()
 $deleted_members = array()

Additional Inherited Members

- Protected Member Functions inherited from SimpleORMap
 parseRelationOptions ($type, $name, $options)
 getTableScheme ()
 storeRelations ()
 deleteRelations ()
 initializeContent ()
 applyCallbacks ($type)
 registerCallback ($types, $cb)
 unregisterCallback ($types, $cb)
 cbAutoIncrementColumn ($type)
 cbAutoKeyCreation ()
- Static Protected Member Functions inherited from SimpleORMap
static tableScheme ($db_table)
- Protected Attributes inherited from SimpleORMap
 $content = array()
 $content_db = array()
 $is_new = true
 $db_table = ''
 $db_fields = null
 $pk = null
 $default_values = array()
 $alias_fields = array()
 $additional_fields = array()
 $relations = array()
 $has_many = array()
 $has_one = array()
 $belongs_to = array()
 $has_and_belongs_to_many = array()
 $registered_callbacks
 $known_slots = array()
 $reserved_slots = array('value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id')
- Static Protected Attributes inherited from SimpleORMap
static $schemes

Detailed Description

StudipAdmissionGroup.class.php

Author
André Noack <noack-quest>, Suchi & Berg GmbH info@.nosp@m.data.nosp@m.-ques.nosp@m.t.de public

Constructor & Destructor Documentation

__construct (   $id = null)

constructor, give primary key of record as param to fetch corresponding record from db if available, if not preset primary key with given value. Give null to create new record

Parameters
mixed$idprimary key of table

Reimplemented from SimpleORMap.

Member Function Documentation

addMember (   $seminar_id)

Here is the call graph for this function:

checkUserSubscribedtoGroup (   $user_id,
  $waitlist = false 
)

Here is the call graph for this function:

Here is the caller graph for this function:

checkUserSubscribedtoGroupWaitingList (   $user_id)

Here is the call graph for this function:

delete ( )

delete entry from database the object is cleared, but is not(!) turned to new state

Returns
int number of deleted rows

Reimplemented from SimpleORMap.

Here is the call graph for this function:

deleteMember (   $seminar_id)

Here is the call graph for this function:

Here is the caller graph for this function:

static GetAdmissionGroupBySeminarId (   $seminar_id)
static

Here is the call graph for this function:

Here is the caller graph for this function:

getMemberIds ( )

Here is the caller graph for this function:

getMemberValues (   $field)

Here is the call graph for this function:

Here is the caller graph for this function:

getNumMembers ( )

Here is the call graph for this function:

getUniqueMemberValue (   $field,
  $values = null 
)

Here is the call graph for this function:

getValue (   $field)

returns value of a column

Exceptions
InvalidArgumentExceptionif column could not be found
BadMethodCallExceptionif getter for additional field could not be found
Parameters
string$field
Returns
null|string|SimpleORMapCollection

Reimplemented from SimpleORMap.

Here is the call graph for this function:

isMember (   $seminar_id)

Here is the caller graph for this function:

restore ( )

restore entry from database

Returns
boolean

Reimplemented from SimpleORMap.

Here is the call graph for this function:

restoreMembers ( )

Here is the call graph for this function:

Here is the caller graph for this function:

setData (   $data,
  $reset = false 
)

set multiple column values if second param is set, existing data in object will be discarded and dirty state is cleared, else new data overrides old data

Parameters
array$dataassoc array
boolean$resetexisting data in object will be discarded
Returns
number of columns changed

Reimplemented from SimpleORMap.

Here is the call graph for this function:

setMinimumContingent ( )

Here is the call graph for this function:

setUniqueMemberValue (   $field,
  $value 
)

Here is the call graph for this function:

store ( )

store entry in database

Exceptions
UnexpectedValueExceptionif there are forbidden NULL values
Returns
number|boolean

Reimplemented from SimpleORMap.

Here is the call graph for this function:

storeMembers ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

$deleted_members = array()
$members = array()

The documentation for this class was generated from the following file: