芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/fmd/lib/Entity/UserOption.php
setCommonDependencies($store, $log); $this->excludeProperty('userId'); } public function save() { $sql = 'INSERT INTO `useroption` (`userId`, `option`, `value`) VALUES (:userId, :option, :value) ON DUPLICATE KEY UPDATE `value` = :value2'; $this->getStore()->insert($sql, array( 'userId' => $this->userId, 'option' => $this->option, 'value' => $this->value, 'value2' => $this->value, )); } public function delete() { $sql = 'DELETE FROM `useroption` WHERE `userId` = :userId AND `option` = :option'; $this->getStore()->update($sql, array('userId' => $this->userId, 'option' => $this->option)); } }