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


PHP JFilterOutput::objectHTMLSafe方法代码示例

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


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

示例1: edit

 function edit()
 {
     $country_id = JRequest::getInt("country_id");
     $countries = $this->getModel("countries");
     $country = JTable::getInstance('country', 'jshop');
     $country->load($country_id);
     $first[] = JHTML::_('select.option', '0', _JSHOP_ORDERING_FIRST, 'ordering', 'name');
     $rows = array_merge($first, $countries->getAllCountries(0));
     $lists['order_countries'] = JHTML::_('select.genericlist', $rows, 'ordering', 'class="inputbox" size="1"', 'ordering', 'name', $country->ordering);
     $_lang = $this->getModel("languages");
     $languages = $_lang->getAllLanguages(1);
     $multilang = count($languages) > 1;
     $edit = $country_id ? $edit = 1 : ($edit = 0);
     JFilterOutput::objectHTMLSafe($country, ENT_QUOTES);
     $view = $this->getView("countries", 'html');
     $view->setLayout("edit");
     $view->assign('country', $country);
     $view->assign('lists', $lists);
     $view->assign('edit', $edit);
     $view->assign('languages', $languages);
     $view->assign('etemplatevar', '');
     $view->assign('multilang', $multilang);
     JPluginHelper::importPlugin('jshoppingadmin');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeEditCountries', array(&$view));
     $view->displayEdit();
 }
开发者ID:ngogiangthanh,项目名称:damtvnewversion,代码行数:27,代码来源:countries.php

示例2: testObjectHTMLSafeWithArray

 /**
  * Sends the FilterTestObject to the object filter.
  *
  * @return void
  */
 public function testObjectHTMLSafeWithArray()
 {
     $this->object->objectHTMLSafe($this->safeObject, null, array('string1', 'string3'));
     $this->assertEquals('<script>alert();</script>', $this->safeObject->string1, "Script tag should pass array test");
     $this->assertEquals('This is a test.', $this->safeObject->string2, "Plain text should pass array test");
     $this->assertEquals('<script>alert(3);</script>', $this->safeObject->string3, "This Script tag should pass array test");
 }
开发者ID:SysBind,项目名称:joomla-cms,代码行数:12,代码来源:JFilterOutputTest.php

示例3: display

 function display($tpl = null)
 {
     global $mainframe;
     JToolBarHelper::title('Batch Adding Videos Locally To Video List', 'jomtube-videos');
     JToolBarHelper::save('uploadbatch');
     JToolBarHelper::spacer();
     JToolBarHelper::cancel();
     $yesno[] = JHTML::_('select.option', 0, 'No');
     $yesno[] = JHTML::_('select.option', 1, 'Yes');
     $ispublished = JHTML::_('select.genericlist', $yesno, 'published', '', 'value', 'text', '');
     $isdownloadable = JHTML::_('select.genericlist', $yesno, 'downloadable', '', 'value', 'text', '');
     $isfeatured = JHTML::_('select.genericlist', $yesno, 'featured', '', 'value', 'text', '');
     //get parent option
     $categories =& $this->get('ParentOption');
     $parentOptions[] = JHTML::_('select.option', '', '-Select Parent-');
     foreach ($categories as $category) {
         $category_name = str_repeat('&nbsp;', 4 * substr_count($category->family_id, "/")) . "+" . $category->category_name;
         $parentOptions[] = JHTML::_('select.option', $category->id, $category_name);
     }
     $parentSelect = JHTML::_('select.genericlist', $parentOptions, 'category_id', 'id="catid" class="inputbox" size="1" ', 'value', 'text', '');
     //clean data
     JFilterOutput::objectHTMLSafe($row, ENT_QUOTES, 'catdescription');
     $this->assignRef('parentSelect', $parentSelect);
     $this->assignRef('pane', $pane);
     $this->assignRef('ispublished', $ispublished);
     $this->assignRef('isdownloadable', $isdownloadable);
     $this->assignRef('isfeatured', $isfeatured);
     $this->assignRef('my', $my =& JFactory::getUser());
     parent::display($tpl);
 }
开发者ID:plexicloud,项目名称:Plexicloud-Pleximedia,代码行数:30,代码来源:view.html.php

示例4: edit

 function edit()
 {
     $id = JRequest::getInt("id");
     $units = JTable::getInstance('unit', 'jshop');
     $units->load($id);
     $edit = $id ? 1 : 0;
     $_lang = $this->getModel("languages");
     $languages = $_lang->getAllLanguages(1);
     $multilang = count($languages) > 1;
     if (!$units->qty) {
         $units->qty = 1;
     }
     JFilterOutput::objectHTMLSafe($units, ENT_QUOTES);
     $view = $this->getView("units", 'html');
     $view->setLayout("edit");
     $view->assign('units', $units);
     $view->assign('edit', $edit);
     $view->assign('languages', $languages);
     $view->assign('multilang', $multilang);
     $view->assign('etemplatevar', '');
     JPluginHelper::importPlugin('jshoppingadmin');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeEditUnitss', array(&$view));
     $view->displayEdit();
 }
开发者ID:ngogiangthanh,项目名称:damtvnewversion,代码行数:25,代码来源:units.php

示例5: edit

 function edit()
 {
     $jshopConfig = JSFactory::getConfig();
     $shipping_id = JRequest::getInt("shipping_id");
     $shipping = JSFactory::getTable('shippingMethod', 'jshop');
     $shipping->load($shipping_id);
     $edit = $shipping_id ? $edit = 1 : ($edit = 0);
     $_lang = JSFactory::getModel("languages");
     $languages = $_lang->getAllLanguages(1);
     $multilang = count($languages) > 1;
     $params = $shipping->getParams();
     $_payments = JSFactory::getModel("payments");
     $list_payments = $_payments->getAllPaymentMethods(0);
     $active_payments = $shipping->getPayments();
     if (!count($active_payments)) {
         $active_payments = array(0);
     }
     $first = array();
     $first[] = JHTML::_('select.option', '0', _JSHOP_ALL, 'id', 'name');
     $lists['payments'] = JHTML::_('select.genericlist', array_merge($first, $list_payments), 'listpayments[]', 'class="inputbox" size="10" multiple = "multiple"', 'payment_id', 'name', $active_payments);
     $nofilter = array();
     JFilterOutput::objectHTMLSafe($shipping, ENT_QUOTES, $nofilter);
     $view = $this->getView("shippings", 'html');
     $view->setLayout("edit");
     $view->assign('shipping', $shipping);
     $view->assign('params', $params);
     $view->assign('edit', $edit);
     $view->assign('languages', $languages);
     $view->assign('multilang', $multilang);
     $view->assign('lists', $lists);
     $view->assign('config', $jshopConfig);
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeEditShippings', array(&$view));
     $view->displayEdit();
 }
开发者ID:arkane0906,项目名称:lasercut-bootstrap,代码行数:35,代码来源:shippings.php

示例6: display

 function display($tpl = null)
 {
     JHTML::_('behavior.tooltip');
     JRequest::setVar('hidemainmenu', 1);
     $model =& $this->getModel();
     $userGroup = $model->getData();
     JFilterOutput::objectHTMLSafe($userGroup);
     $this->assignRef('row', $userGroup);
     $form = new JParameter('', JPATH_COMPONENT . DS . 'models' . DS . 'userGroup.xml');
     $form->loadINI($userGroup->permissions);
     $this->assignRef('form', $form);
     $appliedCategories = $form->get('categories');
     $this->assignRef('categories', $appliedCategories);
     $lists = array();
     require_once JPATH_COMPONENT . DS . 'models' . DS . 'categories.php';
     $categoriesModel = new K2ModelCategories();
     $categories = $categoriesModel->categoriesTree(NULL, true);
     $categories_options = @array_merge($categories_option, $categories);
     $lists['categories'] = JHTML::_('select.genericlist', $categories, 'params[categories][]', 'multiple="multiple" style="width:90%;" size="15"', 'value', 'text', $appliedCategories);
     $lists['inheritance'] = JHTML::_('select.booleanlist', 'params[inheritance]', NULL, $form->get('inheritance'));
     $this->assignRef('lists', $lists);
     JRequest::getInt('cid') ? $title = JText::_('Edit user group') : ($title = JText::_('Add user group'));
     JToolBarHelper::title(JText::_($title));
     JToolBarHelper::save();
     JToolBarHelper::apply();
     JToolBarHelper::cancel();
     parent::display($tpl);
 }
开发者ID:navinpai,项目名称:GEC-Tandav,代码行数:28,代码来源:view.html.php

示例7: display

 /**
  * Creates the output for venue submissions
  *
  * @since 0.5
  * @param int $tpl
  */
 function display($tpl = null)
 {
     $app =& JFactory::getApplication();
     $user =& JFactory::getUser();
     if (!$user->id) {
         $app->redirect(JRoute::_($_SERVER["HTTP_REFERER"]), JText::_('Please login to be able to submit venues'), 'error');
     }
     $editor =& JFactory::getEditor();
     $doc =& JFactory::getDocument();
     $elsettings =& ELHelper::config();
     // Get requests
     $id = JRequest::getInt('id');
     //Get Data from the model
     $row = $this->Get('Venue');
     JFilterOutput::objectHTMLSafe($row, ENT_QUOTES, 'locdescription');
     JHTML::_('behavior.formvalidation');
     JHTML::_('behavior.tooltip');
     //add css file
     $doc->addStyleSheet($this->baseurl . '/components/com_eventlist/assets/css/eventlist.css');
     $doc->addCustomTag('<!--[if IE]><style type="text/css">.floattext{zoom:1;}, * html #eventlist dd { height: 1%; }</style><![endif]-->');
     // Get the menu object of the active menu item
     $menu =& JSite::getMenu();
     $item = $menu->getActive();
     $params =& $app->getParams('com_eventlist');
     $id ? $title = JText::_('EDIT VENUE') : ($title = JText::_('ADD VENUE'));
     //pathway
     $pathway =& $app->getPathWay();
     $pathway->setItemName(1, $item->name);
     $pathway->addItem($title, '');
     //Set Title
     $doc->setTitle($title);
     //editor user
     $editoruser = ELUser::editoruser();
     //transform <br /> and <br> back to \r\n for non editorusers
     if (!$editoruser) {
         $row->locdescription = ELHelper::br2break($row->locdescription);
     }
     //Get image
     $limage = ELImage::flyercreator($row->locimage);
     //Set the info image
     $infoimage = JHTML::_('image', 'components/com_eventlist/assets/images/icon-16-hint.png', JText::_('NOTES'));
     // country list
     $countries = array();
     $countries[] = JHTML::_('select.option', '', JText::_('Select country'));
     $countries = array_merge($countries, ELHelper::getCountryOptions());
     $lists['countries'] = JHTML::_('select.genericlist', $countries, 'country', 'class="inputbox"', 'value', 'text', $row->country);
     unset($countries);
     $this->assignRef('row', $row);
     $this->assignRef('editor', $editor);
     $this->assignRef('editoruser', $editoruser);
     $this->assignRef('limage', $limage);
     $this->assignRef('infoimage', $infoimage);
     $this->assignRef('elsettings', $elsettings);
     $this->assignRef('item', $item);
     $this->assignRef('params', $params);
     $this->assignRef('lists', $lists);
     $this->assignRef('title', $title);
     $this->assignRef('mode', JRequest::getVar('mode', ''));
     parent::display($tpl);
 }
开发者ID:julienV,项目名称:testrepo,代码行数:66,代码来源:view.html.php

示例8: display

 public function display($tpl = null)
 {
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->state = $this->get('State');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $jemsettings = JEMHelper::config();
     $document = JFactory::getDocument();
     $this->settings = JEMAdmin::config();
     $task = JFactory::getApplication()->input->get('task');
     $this->task = $task;
     $url = JUri::root();
     // Load css
     JHtml::_('stylesheet', 'com_jem/backend.css', array(), true);
     $maintainers = $this->get('Members');
     $available_users = $this->get('Available');
     //make data safe
     JFilterOutput::objectHTMLSafe($this->item);
     //create selectlists
     $lists = array();
     $lists['maintainers'] = JHtml::_('select.genericlist', $maintainers, 'maintainers[]', array('class' => 'inputbox', 'size' => '20', 'onDblClick' => 'moveOptions(document.adminForm[\'maintainers[]\'], document.adminForm[\'available_users\'])', 'multiple' => 'multiple', 'style' => 'padding: 6px; width: 250px;'), 'value', 'text');
     $lists['available_users'] = JHtml::_('select.genericlist', $available_users, 'available_users', array('class' => 'inputbox', 'size' => '20', 'onDblClick' => 'moveOptions(document.adminForm[\'available_users\'], document.adminForm[\'maintainers[]\'])', 'multiple' => 'multiple', 'style' => 'padding: 6px; width: 250px;'), 'value', 'text');
     $this->jemsettings = $jemsettings;
     $this->lists = $lists;
     $this->addToolbar();
     parent::display($tpl);
 }
开发者ID:JKoelman,项目名称:JEM-3,代码行数:31,代码来源:view.html.php

示例9: display

 function display($tpl = null)
 {
     global $mainframe, $option;
     JToolBarHelper::title(JText::_('COM_REDSOCIALSTREAM_PROFILE'), 'posts.png');
     $uri = JFactory::getURI();
     $user = JFactory::getUser();
     $model = $this->getModel();
     $this->setLayout('default');
     $lists = array();
     //DEVNOTE: set document title
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSOCIALSTREAM_REDSOCIALSTREAMS'));
     //get the helloworld
     $detail = $this->get('data');
     $profiletypes = $model->getprofiletypes();
     $groups = $model->getgroups();
     $profiles = $model->getprofiles();
     $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $detail->published);
     JToolBarHelper::save('save', 'COM_REDSOCIALSTREAM_SAVE');
     JToolBarHelper::cancel('cancel', 'COM_REDSOCIALSTREAM_CLOSE');
     //clean helloworld data
     jimport('joomla.filter.filteroutput');
     JFilterOutput::objectHTMLSafe($detail, ENT_QUOTES, 'description');
     $this->assignRef('lists', $lists);
     $this->assignRef('detail', $detail);
     $this->request_url = $uri->toString();
     $this->assignRef('profiletypes', $profiletypes);
     $this->assignRef('groups', $groups);
     $this->assignRef('profiles', $profiles);
     parent::display($tpl);
 }
开发者ID:prox91,项目名称:joomla-dev,代码行数:31,代码来源:view.html.php

示例10: edit

 function edit()
 {
     $jshopConfig = JSFactory::getConfig();
     $shipping_id = JRequest::getInt("shipping_id");
     $shipping = JTable::getInstance('shippingMethod', 'jshop');
     $shipping->load($shipping_id);
     $edit = $shipping_id ? $edit = 1 : ($edit = 0);
     $_lang = $this->getModel("languages");
     $languages = $_lang->getAllLanguages(1);
     $multilang = count($languages) > 1;
     $_payments = $this->getModel("payments");
     $list_payments = $_payments->getAllPaymentMethods(0);
     $lists['payments'] = JHTML::_('select.genericlist', $list_payments, 'listpayments[]', 'class="inputbox" size="10" multiple = "multiple"', 'payment_id', 'name', $shipping->getPayments());
     $nofilter = array();
     JFilterOutput::objectHTMLSafe($shipping, ENT_QUOTES, $nofilter);
     $view = $this->getView("shippings", 'html');
     $view->setLayout("edit");
     $view->assign('shipping', $shipping);
     $view->assign('edit', $edit);
     $view->assign('languages', $languages);
     $view->assign('multilang', $multilang);
     $view->assign('lists', $lists);
     $view->assign('config', $jshopConfig);
     $view->assign('etemplatevar', '');
     JPluginHelper::importPlugin('jshoppingadmin');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeEditShippings', array(&$view));
     $view->displayEdit();
 }
开发者ID:Tommar,项目名称:vino2,代码行数:29,代码来源:shippings.php

示例11: edit

 function edit()
 {
     $value_id = JRequest::getInt("value_id");
     $attr_id = JRequest::getInt("attr_id");
     $jshopConfig = JSFactory::getConfig();
     $db = JFactory::getDBO();
     $attributValue = JTable::getInstance('attributValue', 'jshop');
     $attributValue->load($value_id);
     $_lang = $this->getModel("languages");
     $languages = $_lang->getAllLanguages(1);
     $multilang = count($languages) > 1;
     JFilterOutput::objectHTMLSafe($attributValue, ENT_QUOTES);
     $view = $this->getView("attributesvalues", 'html');
     $view->setLayout("edit");
     $view->assign('attributValue', $attributValue);
     $view->assign('attr_id', $attr_id);
     $view->assign('config', $jshopConfig);
     $view->assign('languages', $languages);
     $view->assign('multilang', $multilang);
     $view->assign('etemplatevar', '');
     JPluginHelper::importPlugin('jshoppingadmin');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeEditAtributesValues', array(&$view));
     $view->displayEdit();
 }
开发者ID:Tommar,项目名称:vino2,代码行数:25,代码来源:attributesvalues.php

示例12: edit

 function edit()
 {
     $db = JFactory::getDBO();
     $currency = JSFactory::getTable('currency', 'jshop');
     $currencies = JSFactory::getModel("currencies");
     $currency_id = JRequest::getInt('currency_id');
     $currency->load($currency_id);
     if ($currency->currency_value == 0) {
         $currency->currency_value = 1;
     }
     $first[] = JHTML::_('select.option', '0', _JSHOP_ORDERING_FIRST, 'currency_ordering', 'currency_name');
     $rows = array_merge($first, $currencies->getAllCurrencies());
     $lists['order_currencies'] = JHTML::_('select.genericlist', $rows, 'currency_ordering', 'class="inputbox" size="1"', 'currency_ordering', 'currency_name', $currency->currency_ordering);
     $edit = $currency_id ? $edit = 1 : ($edit = 0);
     JFilterOutput::objectHTMLSafe($currency, ENT_QUOTES);
     $view = $this->getView("currencies", 'html');
     $view->setLayout("edit");
     $view->assign('currency', $currency);
     $view->assign('lists', $lists);
     $view->assign('edit', $edit);
     $view->assign('etemplatevar', '');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeEditCurrencies', array(&$view));
     $view->displayEdit();
 }
开发者ID:JexyRu,项目名称:jshop-updates,代码行数:25,代码来源:currencies.php

示例13: displayDefault

 function displayDefault()
 {
     global $mainframe;
     //Load pane behavior
     jimport('joomla.html.pane');
     //initialise variables
     $document =& JFactory::getDocument();
     $user =& JFactory::getUser();
     JHTML::_('behavior.tooltip');
     //get vars
     $cid = JRequest::getVar('cid');
     //create the toolbar
     if ($cid) {
         JToolBarHelper::title(JText::_('HG_EDIT_AD_TYPE'), 'adtypeedit');
     } else {
         JToolBarHelper::title(JText::_('HG_ADD_AD_TYPE'), 'adtypeadd');
     }
     JToolBarHelper::apply();
     JToolBarHelper::save();
     JToolBarHelper::cancel();
     //Get data from the model
     $model =& $this->getModel();
     $row =& $this->get('Type');
     // fail if checked out not by 'me'
     if ($row->id) {
         if ($model->isCheckedOut($user->get('id'))) {
             JError::raiseWarning('SOME_ERROR_CODE', $row->name . ' ' . JText::_('HG_EDITED_BY_ANOTHER_ADMIN'));
             $mainframe->redirect('index.php?option=com_hotelguide&view=adtypes');
         }
     }
     //clean data
     JFilterOutput::objectHTMLSafe($row, ENT_QUOTES);
     //assign data to template
     $this->assignRef('row', $row);
 }
开发者ID:raulrotundo,项目名称:jpmoser_guide,代码行数:35,代码来源:view.html.php

示例14: edit

 function edit()
 {
     $db = JFactory::getDBO();
     $man_id = JRequest::getInt("man_id");
     $manufacturer = JSFactory::getTable('manufacturer', 'jshop');
     $manufacturer->load($man_id);
     $edit = $man_id ? 1 : 0;
     if (!$man_id) {
         $manufacturer->manufacturer_publish = 1;
     }
     $_lang = JSFactory::getModel("languages");
     $languages = $_lang->getAllLanguages(1);
     $multilang = count($languages) > 1;
     $nofilter = array();
     JFilterOutput::objectHTMLSafe($manufacturer, ENT_QUOTES, $nofilter);
     $view = $this->getView("manufacturer", 'html');
     $view->setLayout("edit");
     $view->assign('manufacturer', $manufacturer);
     $view->assign('edit', $edit);
     $view->assign('languages', $languages);
     $view->assign('etemplatevar', '');
     $view->assign('multilang', $multilang);
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeEditManufacturers', array(&$view));
     $view->displayEdit();
 }
开发者ID:JexyRu,项目名称:jshop-updates,代码行数:26,代码来源:manufacturers.php

示例15: edit

 function edit()
 {
     $id = JRequest::getInt("id");
     $configdisplayprice = JSFactory::getTable('configDisplayPrice', 'jshop');
     $configdisplayprice->load($id);
     $list_c = $configdisplayprice->getZones();
     $zone_countries = array();
     foreach ($list_c as $v) {
         $obj = new stdClass();
         $obj->country_id = $v;
         $zone_countries[] = $obj;
     }
     $display_price_list = array();
     $display_price_list[] = JHTML::_('select.option', 0, _JSHOP_PRODUCT_BRUTTO_PRICE, 'id', 'name');
     $display_price_list[] = JHTML::_('select.option', 1, _JSHOP_PRODUCT_NETTO_PRICE, 'id', 'name');
     $lists['display_price'] = JHTML::_('select.genericlist', $display_price_list, 'display_price', '', 'id', 'name', $configdisplayprice->display_price);
     $lists['display_price_firma'] = JHTML::_('select.genericlist', $display_price_list, 'display_price_firma', '', 'id', 'name', $configdisplayprice->display_price_firma);
     $countries = JSFactory::getModel("countries");
     $lists['countries'] = JHTML::_('select.genericlist', $countries->getAllCountries(0), 'countries_id[]', 'size = "10", multiple = "multiple"', 'country_id', 'name', $zone_countries);
     JFilterOutput::objectHTMLSafe($configdisplayprice, ENT_QUOTES);
     $view = $this->getView("config_display_price", 'html');
     $view->setLayout("edit");
     $view->assign('row', $configdisplayprice);
     $view->assign('lists', $lists);
     $view->assign('etemplatevar', '');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeEditConfigDisplayPrice', array(&$view));
     $view->displayEdit();
 }
开发者ID:olegverstka,项目名称:monax.dev,代码行数:29,代码来源:configdisplayprice.php


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