当前位置: 首页>>代码示例>>PHP>>正文


PHP plugin::Save方法代码示例

本文整理汇总了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">
开发者ID:rafasashi,项目名称:php-object-generator,代码行数:31,代码来源:plugins-upload.php


注:本文中的plugin::Save方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。