Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: ./approot/engine/group.php
SIMU prototüüp nr 4 - GameEngine

Group

DAO
   |
  +-- GameEntity
     |
    +-- Action
       |
      +-- InfoRequest
         |
        +-- Person
           |
          +-- Group

 

private class Group extends Person


 

Methods inherited from Person

is, get_info, subjects_needed, save, set_last_action, commit, commited, all_commited, phase_areas, get_joint_area_by_mask, get_areas_by_mask, set_id, adopter, phase, get_related_info

Methods inherited from InfoRequest

get_info, get_open_items

Methods inherited from Action

&instance, commit, load, save, get_subjects, add_subjects, commited, all_commited, get_related_info

Methods inherited from GameEntity

gameentity, set_owner, set_id, id

Methods inherited from DAO

db_connect, assign_vars, assign_record, exec_sql, get_db_objects, get_db_key_objects, get_db_record, get_db_records, get_db_pairs, get_db_key_records, get_db_vertical_values, get_db_value

Private Method Summary

void

set()

vajalik
void

items()

ei tea kas on tarvis
void

size()

vajalik
string

comma_separated()

Group :: comma_separated()
void

in_group( $group)

vajalik //praegu mitte
void

&intersection( $group)

vajalik
void

in_phase( $mask)

vajalik
void

add_points(integer $nr, string $mask)

vajalikWarning: documentation is missing.
void

add_full_points()

vajalikWarning: documentation is missing.
void

&get_leader()

Group::get_leader()
void

&get_by_mask( $mask)

Peab igal juhul väljastama obj-i
void

&get_random(integer $nr)

////Väljastab kas Person (1) või Group (rohkem)
void

init()

initsialiseerimine, kutsutakse välja konstruktorist.Warning: documentation is missing.
void

save_subjects( $week)

Warning: documentation is missing.
void

load_subjects( $week)

Warning: documentation is missing.
void

add_group( $group)

Warning: documentation is missing.
void

remove_group( $group)

Warning: documentation is missing.
void

set_ids( $ids)

Warning: documentation is missing.
void

add_ids( $ids)

Warning: documentation is missing.
void

remove_ids( $ids)

Warning: documentation is missing.
void

add_id( $id)

Warning: documentation is missing.
void

add_person( $person)

Warning: documentation is missing.
void

remove_id( $id)

Warning: documentation is missing.
void

remove_person( $person)

Warning: documentation is missing.
void

set_all()

Warning: documentation is missing.
void

get_items()

See funktsioon defineeritakse järglasklasside poolt uuesti.Warning: documentation is missing.
void

get( $person_id)

Warning: documentation is missing.
void

get_areas_condition( $mask)

Warning: documentation is missing.

Fields inherited from Person

$profname

Fields inherited from Action

$time_cost, $heading, $description, $hint, $subject_count, $week, $message, $subjects

Fields inherited from GameEntity

$id, $name, $game_id, $user_id, $owner

Private Field Summary

unknown

$persons

unknown

$leader

unknown

$represents_all

Private Method Details

set

private void set( )

  vajalik

Returns void


items

private void items( )

  ei tea kas on tarvis

Returns void


size

private void size( )

  vajalik

Returns void


comma_separated

private string comma_separated( )

  Group :: comma_separated()
Mõeldud kasutamiseks SQL-s, kui objekti array on tühi väljastab 'NULL' (IN (NULL) on ok sql-s)

Returns string


in_group

private void in_group( $group )

  vajalik //praegu mitte
Kas kõik $this grupi liikmed on ka parameetrina antud grupis?

Parameter
$group
Warning: documentation is missing.
Returns void


&intersection

private void &intersection( $group )

  vajalik
Selle ja teise hulga ühisosa

Parameter
$group
Warning: documentation is missing.
Returns void


in_phase

private void in_phase( $mask )

  vajalik
Kas kõik $this grupi liikmed on antud faasi(de)s? Mida see teeks initsialiseerimata obj puhul? Mitte midagi - lihtsalt tühi grupp ju. Erinevalt g-st mille puhul initsialiseerimatus tähendab obj-i puudumist, siin on aga tegemist tühja arrayga.

Parameter
$mask
Warning: documentation is missing.
Returns void


add_points

private void add_points( integer $nr, string $mask )

  vajalik

Warning: documentation is missing.

Parameter
integer $nr
Warning: documentation is missing.
string $mask
Warning: documentation is missing.
Returns void


add_full_points

private void add_full_points( )

  vajalik

Warning: documentation is missing.

Returns void


&get_leader

private void &get_leader( )

  Group::get_leader()

Returns void


&get_by_mask

private void &get_by_mask( $mask )

  Peab igal juhul väljastama obj-i

Parameter
$mask
Warning: documentation is missing.
Returns void


&get_random

private void &get_random( integer $nr )

  ////Väljastab kas Person (1) või Group (rohkem)
Väljastab alati Group (1 või rohkem liiget) Kui selle grupi seas on vähem persoone kui nõutud, antakse nii palju kui on...? ehk siis kõik? sest üks liige korduda ei saa, aga kas ei või juhtuda, et mingi tõenäosusega jääb keegi ikkagi välja: teostan valikut 3x 3-e seast (a,b,c). 1)a 2)c 3)a => jääb (a,c). Seda tuleks vältida.

Parameter
integer $nr
Warning: documentation is missing.
Returns void


init

private void init( )

  initsialiseerimine, kutsutakse välja konstruktorist.

Warning: documentation is missing.

Returns void


save_subjects

private void save_subjects( $week )

 

Warning: documentation is missing.

Parameter
$week
Warning: documentation is missing.
Returns void


load_subjects

private void load_subjects( $week )

 

Warning: documentation is missing.

Parameter
$week
Warning: documentation is missing.
Returns void


add_group

private void add_group( $group )

 

Warning: documentation is missing.

Parameter
$group
Warning: documentation is missing.
Returns void


remove_group

private void remove_group( $group )

 

Warning: documentation is missing.

Parameter
$group
Warning: documentation is missing.
Returns void


set_ids

private void set_ids( $ids )

 

Warning: documentation is missing.

Parameter
$ids
Warning: documentation is missing.
Returns void


add_ids

private void add_ids( $ids )

 

Warning: documentation is missing.

Parameter
$ids
Warning: documentation is missing.
Returns void


remove_ids

private void remove_ids( $ids )

 

Warning: documentation is missing.

Parameter
$ids
Warning: documentation is missing.
Returns void


add_id

private void add_id( $id )

 

Warning: documentation is missing.

Parameter
$id
Warning: documentation is missing.
Returns void


add_person

private void add_person( $person )

 

Warning: documentation is missing.

Parameter
$person
Warning: documentation is missing.
Returns void


remove_id

private void remove_id( $id )

 

Warning: documentation is missing.

Parameter
$id
Warning: documentation is missing.
Returns void


remove_person

private void remove_person( $person )

 

Warning: documentation is missing.

Parameter
$person
Warning: documentation is missing.
Returns void


set_all

private void set_all( )

 

Warning: documentation is missing.

Returns void


get_items

private void get_items( )

  See funktsioon defineeritakse järglasklasside poolt uuesti.

Warning: documentation is missing.

Returns void


get

private void get( $person_id )

 

Warning: documentation is missing.

Parameter
$person_id
Warning: documentation is missing.
Returns void


get_areas_condition

private void get_areas_condition( $mask )

 

Warning: documentation is missing.

Parameter
$mask
Warning: documentation is missing.
Returns void


Private Field Details

$persons

private unknown $persons

>><<



$leader

private unknown $leader

>><<



$represents_all

private unknown $represents_all

>><<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta