本文整理汇总了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>