本文整理汇总了PHP中Source::setFromPost方法的典型用法代码示例。如果您正苦于以下问题:PHP Source::setFromPost方法的具体用法?PHP Source::setFromPost怎么用?PHP Source::setFromPost使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Source
的用法示例。
在下文中一共展示了Source::setFromPost方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$e->setFromPost();
if (!isset($e->event_id)) {
$e->type = IMAGE_EVENT;
$img->event = $e;
$img->event->sources = array();
} else {
$edao = getEventDAO();
$edao->getEvents($e, Q_ALL);
$img->event = $e->results[0];
$sdao = getSourceDAO();
$sdao->getEventSources($img->event);
$img->event->sources = $img->event->results;
}
$e->person->person_id = $img->person->person_id;
$s = new Source();
$s->setFromPost();
$sdao = getSourceDAO();
$sdao->resolveSource($s);
$img->source = $s;
if ($s->source_id > 0) {
// $e->person->person_id = 'null';
if (!$s->isEditable()) {
die(include "inc/forbidden.inc.php");
}
} else {
$s->source_id = 'null';
}
if (isset($img->image_id)) {
$chg = $dao->updateImage($img);
} else {
$e->date1_modifier = 0;
示例2: stamppeeps
stamppeeps($peep);
} else {
$peep->setFromPost();
$pdao->getPersonDetails($peep);
$peep = $peep->results[0];
if (!$peep->isEditable()) {
die(include "inc/forbidden.inc.php");
}
$cen->setFromPost();
$e = new Event();
$e->setFromPost();
$prefix = 'a';
$e->sources = array();
while (isset($_POST[$prefix . "_title"])) {
$s = new Source();
$s->setFromPost($prefix . "_");
if ($s->hasData()) {
$e->sources[] = $s;
}
$prefix++;
}
$prefix = 'a';
$e->attendees = array();
while (isset($_POST[$prefix . "person_id"])) {
$a = new Attendee();
$a->setFromPost($prefix);
$l = new Location();
$l->setFromPost($prefix);
$a->location = $l;
if ($a->hasData() || $a->person->person_id == $e->person->person_id) {
$e->attendees[] = $a;