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


PHP IRequestObject::getParams方法代码示例

本文整理汇总了PHP中IRequestObject::getParams方法的典型用法代码示例。如果您正苦于以下问题:PHP IRequestObject::getParams方法的具体用法?PHP IRequestObject::getParams怎么用?PHP IRequestObject::getParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IRequestObject的用法示例。


在下文中一共展示了IRequestObject::getParams方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: processData

 public function processData(\IRequestObject $requestObject)
 {
     if ($requestObject instanceof \UrlRequestObject) {
         $this->params = $requestObject->getParams();
     } else {
         if ($requestObject instanceof \AjaxRequestObject) {
             $this->params = $requestObject->getParams();
         }
     }
 }
开发者ID:rolwi,项目名称:koala,代码行数:10,代码来源:NewArtefact.class.php

示例2: processData

 public function processData(\IRequestObject $requestObject)
 {
     if ($requestObject instanceof \UrlRequestObject) {
         $this->params = $requestObject->getParams();
     } else {
         if ($requestObject instanceof \AjaxRequestObject) {
             $this->params = $requestObject->getParams();
             $this->title = $this->params["title"];
             $this->content = $this->params["content"];
         }
     }
 }
开发者ID:rolwi,项目名称:koala,代码行数:12,代码来源:CreateNote.class.php

示例3: processData

 public function processData(\IRequestObject $requestObject)
 {
     if ($requestObject instanceof \UrlRequestObject) {
         $this->params = $requestObject->getParams();
         isset($this->params[0]) ? $this->id = $this->params[0] : "";
     } else {
         if ($requestObject instanceof \AjaxRequestObject) {
             $this->params = $requestObject->getParams();
             isset($this->params["id"]) ? $this->id = $this->params["id"] : "";
         }
     }
 }
开发者ID:rolwi,项目名称:koala,代码行数:12,代码来源:DeleteImage.class.php

示例4: processData

 public function processData(\IRequestObject $requestObject)
 {
     $params = $requestObject->getParams();
     $objectId = $params["portletId"];
     $object = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $objectId);
     $dialog = new \Widgets\Dialog();
     $dialog->setTitle("Bearbeiten von " . $object->get_attribute("OBJ_DESC"));
     $dialog->setPositionX($this->params["mouseX"]);
     $dialog->setPositionY($this->params["mouseY"]);
     $titelInput = new \Widgets\TextInput();
     $titelInput->setLabel("Überschrift");
     $titelInput->setData($object);
     //$titelInput->setContentProvider(\Widgets\DataProvider::attributeProvider("OBJ_DESC"));
     $titelInput->setContentProvider(\Widgets\DataProvider::attributeProvider("bid:portlet:content([headline])"));
     $dialog->addWidget($titelInput);
     $dialog->addWidget(new \Widgets\Clearer());
     $align = new \Widgets\ComboBox();
     $align->setLabel("Ausrichtung");
     $align->setOptions(array(array("name" => "Linksbündig", "value" => "left"), array("name" => "Rechtsbündig", "value" => "right"), array("name" => "Zentriert", "value" => "center")));
     $align->setData($object);
     $align->setContentProvider(\Widgets\DataProvider::attributeProvider("bid:portlet:content([alignment])"));
     $dialog->addWidget($align);
     $dialog->addWidget(new \Widgets\Clearer());
     $size = new \Widgets\ComboBox();
     $size->setLabel("Größe");
     $size->setOptions(array(array("name" => "15", "value" => "15"), array("name" => "20", "value" => "20"), array("name" => "25", "value" => "25"), array("name" => "30", "value" => "30"), array("name" => "35", "value" => "35"), array("name" => "40", "value" => "40"), array("name" => "50", "value" => "50"), array("name" => "60", "value" => "60")));
     $size->setData($object);
     $size->setContentProvider(\Widgets\DataProvider::attributeProvider("bid:portlet:content([size])"));
     $dialog->addWidget($size);
     $this->dialog = $dialog;
 }
开发者ID:rolwi,项目名称:koala,代码行数:31,代码来源:Edit.class.php

示例5: processData

 public function processData(\IRequestObject $requestObject)
 {
     //create portlet
     $params = $requestObject->getParams();
     $name = $params["title"];
     $column = $params["parent"];
     $version = "3.0";
     //check diffrent types of parameter
     if (is_string($column)) {
         $columnObject = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $column);
     } else {
         $columnObject = $column;
     }
     //default values
     $address = "http://api.flickr.com/services/feeds/photoset.gne?set=72157603709124069&nsid=12597119@N03&lang=de-de&format=rss_200";
     $address = "http://www.lehrer-online.de/rss-materialien.xml";
     $num_items = "5";
     $desc_length = "50";
     $style = "message";
     //Breit
     $style = "rss_feed";
     //Schmal
     $allow_html = "checked";
     //create object
     $portletObject = \steam_factory::create_container($GLOBALS["STEAM"]->get_id(), $name, $columnObject);
     $portletContent = array("address" => $address, "num_items" => $num_items, "desc_length" => $desc_length, "style" => $style, "allow_html" => $allow_html);
     $portletObject->set_attributes(array(OBJ_DESC => $name, OBJ_TYPE => "container_portlet_bid", "bid:portlet" => "rss", "bid:portlet:version" => $version, "bid:portlet:content" => $portletContent));
 }
开发者ID:rolwi,项目名称:koala,代码行数:28,代码来源:Create.class.php

示例6: processData

 public function processData(\IRequestObject $requestObject)
 {
     $this->params = $requestObject->getParams();
     if (isset($this->params["deleteid"])) {
         $this->deleteid = $this->params["deleteid"];
     }
 }
开发者ID:rolwi,项目名称:koala,代码行数:7,代码来源:Index.class.php

示例7: processData

 public function processData(\IRequestObject $requestObject)
 {
     $params = $requestObject->getParams();
     $objectId = $params["portletId"];
     $object = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $objectId);
     $dialog = new \Widgets\Dialog();
     $dialog->setTitle("Bearbeiten von " . $object->get_attribute("OBJ_DESC"));
     $termIndex = $params["termIndex"];
     $titelInput = new \Widgets\TextInput();
     $titelInput->setLabel("Titel");
     $titelInput->setData($object);
     $titelInput->setContentProvider(new AttributeDataProviderPortletAppointmentTerm($termIndex, "topic"));
     $dialog->addWidget($titelInput);
     $dialog->addWidget(new \Widgets\Clearer());
     $descriptionInput = new \Widgets\TextInput();
     $descriptionInput->setLabel("Beschreibung");
     $descriptionInput->setData($object);
     $descriptionInput->setContentProvider(new AttributeDataProviderPortletAppointmentTerm($termIndex, "description"));
     $dialog->addWidget($descriptionInput);
     $dialog->addWidget(new \Widgets\Clearer());
     $loactionInput = new \Widgets\TextInput();
     $loactionInput->setLabel("Ort");
     $loactionInput->setData($object);
     $loactionInput->setContentProvider(new AttributeDataProviderPortletAppointmentTerm($termIndex, "location"));
     $dialog->addWidget($loactionInput);
     $dialog->addWidget(new \Widgets\Clearer());
     //datepicker
     $datepickerStart = new \Widgets\DatePicker();
     $datepickerStart->setLabel("Startdatum");
     $datepickerStart->setData($object);
     $datepickerStart->setContentProvider(new AttributeDataProviderPortletAppointmentTerm($termIndex, "start_date"));
     $datepickerStart->setDatePicker(true);
     $datepickerStart->setTimePicker(false);
     $dialog->addWidget($datepickerStart);
     $dialog->addWidget(new \Widgets\Clearer());
     $timepickerStart = new \Widgets\DatePicker();
     $timepickerStart->setLabel("Startzeit");
     $timepickerStart->setData($object);
     $timepickerStart->setContentProvider(new AttributeDataProviderPortletAppointmentTerm($termIndex, "start_time"));
     $timepickerStart->setDatePicker(false);
     $timepickerStart->setTimePicker(true);
     $dialog->addWidget($timepickerStart);
     $dialog->addWidget(new \Widgets\Clearer());
     $datepickerEnd = new \Widgets\DatePicker();
     $datepickerEnd->setLabel("Enddatum");
     $datepickerEnd->setData($object);
     $datepickerEnd->setContentProvider(new AttributeDataProviderPortletAppointmentTerm($termIndex, "end_date"));
     $datepickerEnd->setDatePicker(true);
     $datepickerEnd->setTimePicker(false);
     $dialog->addWidget($datepickerEnd);
     $dialog->addWidget(new \Widgets\Clearer());
     //url
     $linkurlInput = new \Widgets\TextInput();
     $linkurlInput->setLabel("Link-Adresse");
     $linkurlInput->setData($object);
     $linkurlInput->setContentProvider(new AttributeDataProviderPortletAppointmentTerm($termIndex, "linkurl"));
     $dialog->addWidget($linkurlInput);
     $dialog->addWidget(new \Widgets\Clearer());
     $this->dialog = $dialog;
 }
开发者ID:rolwi,项目名称:koala,代码行数:60,代码来源:EditTerm.class.php

示例8: processData

 public function processData(\IRequestObject $requestObject)
 {
     $params = $requestObject->getParams();
     $name = $params["title"];
     $column = $params["parent"];
     $version = "3.0";
     //check diffrent types of parameter
     if (is_string($column)) {
         $columnObject = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $column);
     } else {
         $columnObject = $column;
     }
     //default values
     $descripton = "keine Beschreibung";
     $mediaType = "movie";
     //$url="http://www.bid-owl.de/download/347240/video.flv"; //test url
     $url = "";
     //create
     $media = \steam_factory::create_container($GLOBALS["STEAM"]->get_id(), $name, $columnObject);
     //$mediaType = "image";
     //$mediaType = "audio";
     $mediaType = "movie";
     $mediaContent = array("headline" => $name, "description" => $descripton, "media_type" => $mediaType, "url" => $url);
     $media->set_attributes(array(OBJ_DESC => $name, OBJ_TYPE => "container_portlet_bid", "bid:portlet" => "media", "bid:portlet:version" => $version, "bid:portlet:content" => $mediaContent));
 }
开发者ID:rolwi,项目名称:koala,代码行数:25,代码来源:Create.class.php

示例9: processData

 public function processData(\IRequestObject $requestObject)
 {
     $params = $requestObject->getParams();
     $parentObjectId = $params["portletObjectId"];
     $name = "Neue Meldung";
     //check diffrent types of parameter
     if (is_string($parentObjectId)) {
         $portletObject = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $parentObjectId);
     } else {
         $portletObject = $parentObjectId;
     }
     $pName = "Neue Meldung";
     $pContent = "Bitte geben Sie hier den Meldungstext ein.";
     $pMimeType = "text/plain";
     $pEnvironment = $portletObject;
     //default is FALSE
     $pDescription = "";
     $messageObject = \steam_factory::create_document($GLOBALS["STEAM"]->get_id(), $pName, $pContent, $pMimeType, $pEnvironment, $pDescription);
     $messageObject->set_attribute("bid:doctype", "portlet:msg");
     $messageObject->set_attribute("bid:portlet:msg:link_open", "checked");
     $messageObject->set_attribute("bid:portlet:msg:link_url", "");
     $messageObject->set_attribute("bid:portlet:msg:link_url_label", "");
     $messageObject->set_attribute("bid:portlet:msg:picture_alignment", "left");
     $messageObject->set_attribute("bid:portlet:msg:picture_width", "");
     $this->addMessageIdToPortlet($portletObject, $messageObject);
 }
开发者ID:rolwi,项目名称:koala,代码行数:26,代码来源:CreateMessage.class.php

示例10: processData

 public function processData(\IRequestObject $requestObject)
 {
     $this->params = $requestObject->getParams();
     $this->id = $this->params["id"];
     $object = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $this->id);
     $object->move($GLOBALS["STEAM"]->get_current_steam_user()->get_attribute(USER_TRASHBIN));
 }
开发者ID:rolwi,项目名称:koala,代码行数:7,代码来源:RemoveSchoolBookmark.class.php

示例11: processData

 public function processData(\IRequestObject $requestObject)
 {
     $params = $requestObject->getParams();
     $name = $params["title"];
     $column = $params["parent"];
     $version = "1.0";
     //check diffrent types of parameter
     if (is_string($column)) {
         $columnObject = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $column);
     } else {
         $columnObject = $column;
     }
     //get date
     $currentYear = date("Y") . "";
     $nextYear = date("Y") + 1 . "";
     //create
     $pollObject = \steam_factory::create_container($GLOBALS["STEAM"]->get_id(), $name, $columnObject);
     $pollTopic = "Beschreibung der Abstimmung";
     $startDate = array("day" => "01", "month" => "01", "year" => $currentYear);
     $endDate = array("day" => "01", "month" => "01", "year" => $nextYear);
     $options = array("Eintrag A", "Eintrag B", "Eintrag C", "Eintrag D", "Eintrag E", "Eintrag F");
     $optionsVotecount = array(0, 0, 0, 0, 0, 0);
     $pollContent = array("end_date" => $endDate, "options" => $options, "options_votecount" => $optionsVotecount, "poll_topic" => $pollTopic, "start_date" => $startDate);
     $pollObject->set_attributes(array(OBJ_DESC => $name, OBJ_TYPE => "container_portlet_bid", "bid:portlet" => "poll", "bid:portlet:version" => $version, "bid:portlet:content" => $pollContent));
 }
开发者ID:rolwi,项目名称:koala,代码行数:25,代码来源:Create.class.php

示例12: processData

 public function processData(\IRequestObject $requestObject)
 {
     $this->params = $requestObject->getParams();
     $this->id = $this->params["id"];
     // 		var_dump($this->params["selection"]);
     // 		if(get_magic_quotes_gpc()){
     // 			$d = stripslashes($this->params["selection"]);
     // 			var_dump($d);
     // 		}else{
     // 			$d = $this->params["selection"];
     // 		}
     // 		$d = json_decode($d,true);
     // 		var_dump($d);
     // 		switch(json_last_error())
     // 		{
     // 			case JSON_ERROR_DEPTH:
     // 				echo ' - Maximale Stacktiefe überschritten';
     // 				break;
     // 			case JSON_ERROR_CTRL_CHAR:
     // 				echo ' - Unerwartetes Steuerzeichen gefunden';
     // 				break;
     // 			case JSON_ERROR_SYNTAX:
     // 				echo ' - Syntaxfehler, ungültiges JSON';
     // 				break;
     // 			case JSON_ERROR_NONE:
     // 				echo ' - Keine Fehler';
     // 				break;
     // 		}
     //$this->selection = json_decode($this->params["selection"]);
     $this->x = $this->params["x"];
     $this->y = $this->params["y"];
     $this->height = $this->params["height"];
     $this->width = $this->params["width"];
 }
开发者ID:rolwi,项目名称:koala,代码行数:34,代码来源:GetPopupMenu.class.php

示例13: processData

 public function processData(\IRequestObject $requestObject)
 {
     $params = $requestObject->getParams();
     //		$objectId = $params["messageObjectId"];
     //		$object = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $objectId);
     //var_dump($params);
     $dialog = new \Widgets\Dialog();
     $dialog->setTitle("Portfolio Importieren");
     $dialog->setPositionX($this->params["mouseX"]);
     $dialog->setPositionY($this->params["mouseY"]);
     $ajaxUploader = new \Widgets\AjaxUploader();
     $imgWidget = new \Widgets\RawHtml();
     $imgWidget->setHtml("Um ein Portfolio zu importieren ziehen sie die Datei auf dieses Feld oder doppelklicken sie hier.<br>");
     //$ajaxUploader->setPreview($imgWidget);
     //		}
     $ajaxUploader->setSizeLimit(return_bytes(ini_get('post_max_size')));
     $ajaxUploader->setNamespace("Portfolio");
     $ajaxUploader->setCommand("UploadImport");
     $ajaxUploader->setDestId($params["id"]);
     $ajaxUploader->setMultiUpload(false);
     //		$ajaxUploader->setOnComplete("function(id, fileName, responseJSON){document.getElementById('uploaderArtefact').src = '" . PATH_URL . "download/document/' + responseJSON.oid; jQuery('#uploaderArtefact').addClass('saved')}");
     $ajaxUploader->setOnComplete("function(id, fileName, responseJSON){location.reload();}");
     $dialog->addWidget($ajaxUploader);
     //		$dialog->addWidget($raw);
     $dialog->addWidget(new \Widgets\Clearer());
     $this->dialog = $dialog;
 }
开发者ID:rolwi,项目名称:koala,代码行数:27,代码来源:UploadImportMessage.class.php

示例14: processData

 public function processData(\IRequestObject $requestObject)
 {
     $this->params = $requestObject->getParams();
     $this->id = $this->params["id"];
     $this->direction = $this->params["direction"];
     $this->object = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $this->id);
     $environment = $this->object->get_environment();
     $inventory = $environment->get_inventory();
     foreach ($inventory as $key => $element) {
         if ($element->get_id() == $this->id) {
             $index = $key;
         }
     }
     if ($this->direction == "up") {
         $environment->swap_inventory($index, $index - 1);
     } else {
         if ($this->direction == "down") {
             $environment->swap_inventory($index, $index + 1);
         } else {
             if ($this->direction == "top") {
                 //$environment->swap_inventory($index, 0);
                 for ($i = 0; $i < $index; $i++) {
                     $environment->swap_inventory(0, $i);
                 }
             } else {
                 if ($this->direction == "bottom") {
                     //$environment->swap_inventory($index, count($inventory)-1);
                     for ($i = count($inventory) - 1; $i >= $index; $i--) {
                         $environment->swap_inventory($index, $i);
                     }
                 }
             }
         }
     }
 }
开发者ID:rolwi,项目名称:koala,代码行数:35,代码来源:Order.class.php

示例15: processData

 public function processData(\IRequestObject $requestObject)
 {
     $params = $requestObject->getParams();
     $objectId = $params["portletId"];
     $appointmentObject = \steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $objectId);
     $terms = $appointmentObject->get_attribute("bid:portlet:content");
     //get date
     $currentDay = date("d") . "";
     $currentMonth = date("m") . "";
     $currentYear = date("Y") . "";
     //new term parts
     $description = "Beschreibung";
     $endDate = array("day" => "", "month" => "", "year" => "");
     $linkurl = "";
     $location = "Ort";
     $startDate = array("day" => $currentDay, "month" => $currentMonth, "year" => $currentYear);
     $startTime = array("hour" => "12", "minutes" => "00");
     $topic = "Neuer Termin";
     //compose term
     $newTerm = array("description" => $description, "end_date" => $endDate, "linkurl" => $linkurl, "location" => $location, "start_date" => $startDate, "start_time" => $startTime, "topic" => $topic);
     if ($terms == "") {
         $terms = array();
     }
     $terms[] = $newTerm;
     $appointmentObject->set_attribute("bid:portlet:content", $terms);
 }
开发者ID:rolwi,项目名称:koala,代码行数:26,代码来源:CreateTerm.class.php


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