當前位置: 首頁>>代碼示例>>PHP>>正文


PHP AMP_url_add_vars函數代碼示例

本文整理匯總了PHP中AMP_url_add_vars函數的典型用法代碼示例。如果您正苦於以下問題:PHP AMP_url_add_vars函數的具體用法?PHP AMP_url_add_vars怎麽用?PHP AMP_url_add_vars使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了AMP_url_add_vars函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getURL

 function getURL()
 {
     if (!$this->isLive()) {
         return false;
     }
     return '' . AMP_url_add_vars(AMP_CONTENT_URL_FORM_DISPLAY, array('modin=' . $this->getModin(), 'uid=' . $this->id));
 }
開發者ID:radicalsuz,項目名稱:amp,代碼行數:7,代碼來源:Profile.php

示例2: getURL

 function getURL()
 {
     if (!$this->id) {
         return AMP_CONTENT_URL_ACTION;
     }
     return AMP_url_add_vars(AMP_CONTENT_URL_ACTION, 'action=' . $this->id);
 }
開發者ID:radicalsuz,項目名稱:amp,代碼行數:7,代碼來源:WebAction.php

示例3: _preview_url

 function _preview_url($section)
 {
     $base_url = $section->getURL_default();
     if (AMP_CONTENT_HUMANIZE_URLS) {
         $base_url = '/' . AMP_route_for('section', $section->id);
     }
     return AMP_url_add_vars(AmpUtility::current_host() . $base_url, array('preview=1', 'cache=0'));
 }
開發者ID:radicaldesigns,項目名稱:amp,代碼行數:8,代碼來源:Summary.php

示例4: _makeIcon

 function _makeIcon($image)
 {
     if (!$image) {
         return false;
     }
     $image_url = AMP_url_add_vars(AMP_CONTENT_URL_IMAGE, array('action=resize', 'class=thumb', 'filename=' . $image->getName(), 'width=' . $this->_image_width));
     return $this->_renderer->image($image_url, $this->_image_attr);
 }
開發者ID:radicalsuz,項目名稱:amp,代碼行數:8,代碼來源:List.php

示例5: commit_megaupload

 function commit_megaupload()
 {
     $renderer = AMP_get_renderer();
     $buffer = new AMP_Content_Buffer();
     $buffer->add($renderer->newline(2) . $renderer->link("javascript:showPopup( '" . AMP_url_add_vars("file_uploader.php", array('doctype=img')) . "' );", AMP_TEXT_UPLOAD . $renderer->space() . AMP_TEXT_FILE) . $renderer->newline(2));
     $this->_display->add($buffer);
     return true;
 }
開發者ID:radicalsuz,項目名稱:amp,代碼行數:8,代碼來源:Controller.php

示例6: render_image

 function render_image($source)
 {
     if (!($image = $source->getImageRef())) {
         return false;
     }
     $image_url = AMP_url_add_vars(AMP_CONTENT_URL_IMAGE, array('filename=' . $image->getName(), 'class=' . AMP_IMAGE_CLASS_THUMB, 'height=30', 'action=resize'));
     return $this->_renderer->image($image_url, $this->_image_attr);
 }
開發者ID:radicaldesigns,項目名稱:amp,代碼行數:8,代碼來源:Detail.php

示例7: onSave

 function onSave(&$controller)
 {
     $form = $controller->get_form();
     $values = $form->getValues();
     if (isset($values['list_form_id']) && $values['list_form_id']) {
         ampredirect(AMP_url_add_vars(AMP_SYSTEM_URL_TOOL_PUBLICPAGE, array('modid=' . $values['modid'])));
     }
 }
開發者ID:radicaldesigns,項目名稱:amp,代碼行數:8,代碼來源:ComponentMap.inc.php

示例8: __construct

 function __construct()
 {
     $name = 'AMP_System_UserData_ImportForm';
     $this->init($name, 'POST', AMP_url_add_vars(AMP_SYSTEM_URL_FORMS, 'action=import'));
     $this->_init_request();
     $this->_init_import_file();
     $this->_init_fields();
 }
開發者ID:radicalsuz,項目名稱:amp,代碼行數:8,代碼來源:ImportForm.php

示例9: _formFooter

 function _formFooter()
 {
     if (isset($_REQUEST['id']) || isset($_REQUEST['file'])) {
         return false;
     }
     require_once 'AMP/Content/Display/HTML.inc.php';
     $renderer = new AMPDisplay_HTML();
     return $renderer->link(AMP_url_add_vars(AMP_SYSTEM_URL_IMAGES, 'action=megaupload'), 'Alternate upload page');
 }
開發者ID:radicaldesigns,項目名稱:amp,代碼行數:9,代碼來源:Form.inc.php

示例10: _makeOwnerLink

 function _makeOwnerLink($data, $fieldname)
 {
     if (!(isset($data['uid']) && $data['uid'])) {
         return;
     }
     $renderer = AMP_get_renderer();
     $owner_field = $this->_owner_link_def;
     $owner_field['default'] = $renderer->link(AMP_url_add_vars(AMP_SYSTEM_URL_FORM_ENTRY, array('id=' . $data['uid'])), $owner_field['default']);
     $this->addField($owner_field, 'owner_link');
 }
開發者ID:radicaldesigns,項目名稱:amp,代碼行數:10,代碼來源:Form.inc.php

示例11: setTool

 function setTool($tool_id)
 {
     $forms_list = AMP_lookup('formsByTool');
     $url_vars = array('tool_id=' . $tool_id);
     if (isset($forms_list[$tool_id])) {
         $url_vars[] = 'form_id=' . $forms_list[$tool_id];
     }
     $this->_url_add = AMP_url_add_vars(AMP_SYSTEM_URL_PUBLIC_PAGE_ADD, $url_vars);
     $this->editlink = AMP_url_add_vars($this->editlink, $url_vars);
     $this->addCriteria('modid=' . $tool_id);
 }
開發者ID:radicalsuz,項目名稱:amp,代碼行數:11,代碼來源:List.inc.php

示例12: _render_permission_link

 function _render_permission_link(&$source)
 {
     $permission_id = $source->getPermission();
     $permission_name = $this->lookup($permission_id, 'permission');
     if ($permission_name == $permission_id) {
         return $permission_name;
     }
     $url = AMP_url_add_vars(AMP_SYSTEM_URL_PERMISSION_GROUP, array('id=' . $permission_id));
     $renderer = AMP_get_renderer();
     return $renderer->link($url, $permission_name);
 }
開發者ID:radicaldesigns,項目名稱:amp,代碼行數:11,代碼來源:List.inc.php

示例13: _getUrlEdit

 function _getUrlEdit($row_data)
 {
     if (isset($this->_saved_edit_urls[$row_data['id']])) {
         return $this->_saved_edit_urls[$row_data['id']];
     }
     $source =& $this->source[$this->_source_keys[$this->_source_counter]];
     $uid = $source ? $source->getOwner() : false;
     if ($this->editlink_uid && $uid) {
         $editlink = isset($this->_url_edit) ? $this->_url_edit : $this->editlink;
         $value = AMP_url_add_vars(AMP_SYSTEM_URL_FORM_ENTRY, array("uid=" . $uid));
     } else {
         $value = parent::_getUrlEdit($row_data);
     }
     $this->_saved_edit_urls[$row_data['id']] = $value;
     return $value;
 }
開發者ID:radicaldesigns,項目名稱:amp,代碼行數:16,代碼來源:List.inc.php

示例14: execute

 function execute($options = array())
 {
     $options = array_merge($this->getOptions(), $options);
     if (!isset($options['_userid'])) {
         return false;
     }
     $uid = $options['_userid'];
     $alias_url[] = AMP_url_add_vars(AMP_CONTENT_URL_FORM_DISPLAY, array('modin=' . $this->udm->instance, 'uid=' . $uid));
     $alias_url[] = AMP_url_add_vars('userdata_display.php', array('modin=' . $this->udm->instance, 'uid=' . $uid));
     require_once 'AMP/Content/Redirect/List.inc.php';
     $tag_list = new AMP_Content_Redirect_List(AMP_Registry::getDbcon(), array('target' => $alias_url));
     $tag_list->drop_column('select');
     $tag_list->suppress('form');
     $tag_list->suppress('footer');
     $tag_list->suppress('messages');
     /*
     $tag_list->suppressToolbar( );
     $tag_list->suppressAddlink( );
     $tag_list->suppressMessages( );
     */
     $this->udm->fields[$this->addPrefix('redirect_list_public')]['values'] = $this->inForm($tag_list->execute());
 }
開發者ID:radicaldesigns,項目名稱:amp,代碼行數:22,代碼來源:Read.inc.php

示例15: _init_criteria

 function _init_criteria($criteria)
 {
     if (isset($criteria['modid']) && ($tool_id = $criteria['modid'])) {
         $this->_url_add = AMP_url_add_vars(AMP_SYSTEM_URL_NAV_ADD, array('tool_id=' . $tool_id));
     }
 }
開發者ID:radicaldesigns,項目名稱:amp,代碼行數:6,代碼來源:List.inc.php


注:本文中的AMP_url_add_vars函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。