当前位置: 首页>>代码示例>>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;未经允许,请勿转载。