本文整理匯總了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;