Horde_Group_Base::create PHP Метод

create() публичный Метод

Creates a new group.
public create ( string $name, string $email = null ) : mixed
$name string A group name.
$email string The group's email address.
Результат mixed The ID of the created group.
    public function create($name, $email = null)
    {
        // Create group.
        $gid = $this->_create($name, $email);
        // Update caches.
        if (($list = $this->_getListCache()) !== null) {
            $list[$gid] = $name;
            $this->_setListCache($list);
        }
        try {
            $this->_cache->set($this->_sig('name_' . $gid), $name);
            $this->_cache->set($this->_sig('exists_' . $gid), 1);
            $this->_cache->set($this->_sig('data_' . $gid), serialize(array('name' => $name, 'email' => $email)));
        } catch (Horde_Cache_Exception $e) {
        }
        return $gid;
    }