Public Member Functions | Static Public Member Functions | Data Fields

ilGroup Class Reference

Public Member Functions

 ilGroup ($a_group_id=0)
 Constructor public.

Static Public Member Functions

 _groupNameExists ($a_group_name, $a_id=0)
 checks if group name already exists.

Data Fields


Detailed Description

Definition at line 34 of file class.ilGroup.php.

Member Function Documentation

ilGroup::_groupNameExists ( a_group_name,
a_id = 0 
) [static]

checks if group name already exists.

Groupnames must be unique for mailing purposes static function; move to better place (ilObjGroup or ilUtil) public

string groupname
integer obj_id of group to exclude from the check.
boolean true if exists

Definition at line 74 of file class.ilGroup.php.

References $ilErr, and $q.

                global $ilDB,$ilErr;
                if (empty($a_group_name))
                        $message = get_class($this)."::groupNameExists(): No groupname given!";

                $clause = ($a_id) ? " AND obj_id != '".$a_id."'" : "";

                $q = "SELECT obj_id FROM object_data ".
                         "WHERE title = '".addslashes($a_group_name)."' ".
                         "AND type = 'grp'".
                $r = $ilDB->query($q);

                if ($r->numRows() == 1)
                        return true;
                        return false;

ilGroup::ilGroup ( a_group_id = 0  ) 

Constructor public.

integer group_id

Definition at line 55 of file class.ilGroup.php.

References $ilias.

                global $ilias;
                // init variables
                $this->ilias = &$ilias;
                $this->group_id = $a_group_id;

Field Documentation


Definition at line 48 of file class.ilGroup.php.


Definition at line 41 of file class.ilGroup.php.

Referenced by ilGroup().

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