本文整理匯總了PHP中Source::getSource方法的典型用法代碼示例。如果您正苦於以下問題:PHP Source::getSource方法的具體用法?PHP Source::getSource怎麽用?PHP Source::getSource使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Source
的用法示例。
在下文中一共展示了Source::getSource方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Source
<?
require('../include/config.php');
require('../include/class.source.php');
$n = new Source($db);
$source = $_POST['source'];
$s = $n->getSource($source);
if (!isset($s['source_id'])) {
$n->Insert(Array(
'source_id' => $source,
'source_name' => $source,
'type' => 'good'
));
} else {
var_dump($n->setType(Array(
'type' => 'good',
'source_id' => $source
)));
}
?>
示例2: Source
<?php
header('Content-type: application/json');
require_once "source_interface.php";
require_once "source_actions.php";
require_once "plugin_test_source.php";
require_once "source.php";
$source = new Source();
session_start();
$source->setSource(Source::PLUGIN);
if (isset($_SESSION[PluginTestSource::TMPSESSIONNAME])) {
echo $source->getSource();
}
示例3:
$n->Edit($_POST);
if ($_POST['type'] != 'bad') {
Misc::Redirect('sources_list.php');
} else {
Misc::Redirect('badsources_list.php');
}
}
if (isset($_POST['submitdelete'])) {
$n->Delete($_POST['source_id']);
if ($_POST['type'] != 'bad') {
Misc::Redirect('sources_list.php');
} else {
Misc::Redirect('badsources_list.php');
}
}
$s = $n->getSource($_GET['id']);
include 'include/top.php';
?>
<form method="post">
<input type="hidden" id="hidden" name="source_id" value="<?php
echo $s['source_id'];
?>
" />
<p>
<label><span>Source ID </span>#<?php
echo $s['source_id'];
?>
</label>
</p>
<p>