芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/lib/Entity/ApplicationRedirectUri.php
setCommonDependencies($store, $log); } /** * Get Id * @return int */ public function getId() { return $this->id; } /** * Save */ public function save() { if ($this->id == null) $this->add(); else $this->edit(); } public function delete() { $this->getStore()->update('DELETE FROM `oauth_client_redirect_uris` WHERE `id` = :id', ['id' => $this->id]); } private function add() { $this->id = $this->getStore()->insert(' INSERT INTO `oauth_client_redirect_uris` (`client_id`, `redirect_uri`) VALUES (:clientId, :redirectUri) ', [ 'clientId' => $this->clientId, 'redirectUri' => $this->redirectUri ]); } private function edit() { $this->getStore()->update(' UPDATE `oauth_client_redirect_uris` SET `redirect_uri` = :redirectUri WHERE `id` = :id ',[ 'id' => $this->id, 'redirectUri' => $this->redirectUri ]); } }