本文整理匯總了PHP中plugin::Save方法的典型用法代碼示例。如果您正苦於以下問題:PHP plugin::Save方法的具體用法?PHP plugin::Save怎麽用?PHP plugin::Save使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類plugin
的用法示例。
在下文中一共展示了plugin::Save方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: plugin
$_SESSION['description'] = $_POST['description'];
$_SESSION['author'] = $_POST['author'];
$_SESSION['code'] = $_POST['code'];
$_SESSION['php'] = $_POST['php'];
$_SESSION['mysql'] = $_POST['mysql'];
}
if (sizeof($_POST) > 0 && $_POST['name'] != '' && $_POST['description'] != '' && $_POST['author'] != '' && $_POST['code'] != '') {
$plugin = new plugin();
$plugin->name = $_POST['name'];
$plugin->description = $_POST['description'];
$plugin->author = $_POST['author'];
$plugin->code = base64_encode($_POST['code']);
$plugin->active = 0;
$plugin->php = $_POST['php'];
$plugin->mysql = $_POST['mysql'];
$plugin->Save();
$pending = true;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.phpobjectgenerator.com/plog/rss/"/>
<link rel="stylesheet" href="http://www.phpobjectgenerator.com/phpobjectgenerator.css" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" >
<title>Php Object Generator Plugins</title>
<meta name="description" content="Php Object Generator, (POG) is a PHP code generator which automatically generates tested Object Oriented code that you can use for your PHP4/PHP5 application. " />
<meta name="keywords" content="php, code, generator, classes, object-oriented, CRUD" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="ICBM" content="53.5411, -113.4914">