芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/clients/canaldegap.fr/lib/classes/class.stylesheet.inc.php
SetInitialValues(); } function SetInitialValues() { $this->id = -1; $this->name = ''; $this->value = ''; $this->media_type = ''; } function Id() { return $this->id; } function Name() { return $this->name; } function Save() { $result = false; global $gCms; $styleops =& $gCms->GetStylesheetOperations(); if ($this->id > -1) { $result = $styleops->UpdateStylesheet($this); } else { $newid = $styleops->InsertStylesheet($this); if ($newid > -1) { $this->id = $newid; $result = true; } } return $result; } function Delete() { $result = false; if ($this->id > -1) { global $gCms; $styleops =& $gCms->GetStylesheetOperations(); $result = $styleops->DeleteStylesheetByID($this->id); if ($result) { $this->SetInitialValues(); } } return $result; } } # vim:ts=4 sw=4 noet ?>