芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/clients/canaldegap.fr/lib/classes/class.group.inc.php
SetInitialValues(); } function SetInitialValues() { $this->id = -1; $this->name = ''; $this->active = false; } function Save() { $result = false; global $gCms; $groupops =& $gCms->GetGroupOperations(); if ($this->id > -1) { $result = $groupops->UpdateGroup($this); } else { $newid = $groupops->InsertGroup($this); if ($newid > -1) { $this->id = $newid; $result = true; } } return $result; } function Delete() { $result = false; if ($this->id > -1) { global $gCms; $groupops =& $gCms->GetGroupOperations(); $result = $groupops->DeleteGroupByID($this->id); if ($result) { $this->SetInitialValues(); } } return $result; } } # vim:ts=4 sw=4 noet ?>