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


PHP CostbenefitprojectionHelper::getUikitComp方法代码示例

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


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

示例1: getCountryCountryInterventionBcbb_DD

 /**
  * Method to get an array of Intervention Objects.
  *
  * @return mixed  An array of Intervention Objects on success, false on failure.
  *
  */
 public function getCountryCountryInterventionBcbb_DD($country)
 {
     // Get a db connection.
     $db = JFactory::getDbo();
     // Create a new query object.
     $query = $db->getQuery(true);
     // Get from #__costbenefitprojection_intervention as dd
     $query->select($db->quoteName(array('dd.id', 'dd.name', 'dd.type', 'dd.coverage', 'dd.duration', 'dd.share', 'dd.description', 'dd.reference', 'dd.interventions', 'dd.intervention', 'dd.published', 'dd.created_by', 'dd.modified_by', 'dd.created', 'dd.modified'), array('id', 'name', 'type', 'coverage', 'duration', 'share', 'description', 'reference', 'interventions', 'intervention', 'published', 'created_by', 'modified_by', 'created', 'modified')));
     $query->from($db->quoteName('#__costbenefitprojection_intervention', 'dd'));
     $query->where('dd.country = ' . $db->quote($country));
     $query->where('dd.published = 1');
     $query->order('dd.ordering ASC');
     // Reset the query using our newly populated query object.
     $db->setQuery($query);
     $db->execute();
     // check if there was data returned
     if ($db->getNumRows()) {
         $items = $db->loadObjectList();
         // Convert the parameter fields into objects.
         foreach ($items as $nr => &$item) {
             if (CostbenefitprojectionHelper::checkString($item->interventions)) {
                 // Decode interventions
                 $item->interventions = json_decode($item->interventions, true);
             }
             // Make sure the content prepare plugins fire on description.
             $item->description = JHtml::_('content.prepare', $item->description);
             // Checking if description has uikit components that must be loaded.
             $this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->description, $this->uikitComp);
             // Make sure the content prepare plugins fire on reference.
             $item->reference = JHtml::_('content.prepare', $item->reference);
             // Checking if reference has uikit components that must be loaded.
             $this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->reference, $this->uikitComp);
         }
         return $items;
     }
     return false;
 }
开发者ID:namibia,项目名称:CBP-Joomla-3-Component,代码行数:43,代码来源:combinedresults.php

示例2: getIdCountryService_providerCace_B

 /**
  * Method to get an array of Service_provider Objects.
  *
  * @return mixed  An array of Service_provider Objects on success, false on failure.
  *
  */
 public function getIdCountryService_providerCace_B($id)
 {
     // Get a db connection.
     $db = JFactory::getDbo();
     // Create a new query object.
     $query = $db->getQuery(true);
     // Get from #__costbenefitprojection_service_provider as b
     $query->select($db->quoteName(array('b.id', 'b.user', 'b.publicname', 'b.publicemail', 'b.publicnumber', 'b.publicaddress'), array('id', 'user', 'publicname', 'publicemail', 'publicnumber', 'publicaddress')));
     $query->from($db->quoteName('#__costbenefitprojection_service_provider', 'b'));
     $query->where('b.country = ' . $db->quote($id));
     $query->where('b.published = 1');
     $query->order('b.publicname ASC');
     // Reset the query using our newly populated query object.
     $db->setQuery($query);
     $db->execute();
     // check if there was data returned
     if ($db->getNumRows()) {
         $items = $db->loadObjectList();
         // Convert the parameter fields into objects.
         foreach ($items as $nr => &$item) {
             // Make sure the content prepare plugins fire on publicaddress.
             $item->publicaddress = JHtml::_('content.prepare', $item->publicaddress);
             // Checking if publicaddress has uikit components that must be loaded.
             $this->uikitComp = CostbenefitprojectionHelper::getUikitComp($item->publicaddress, $this->uikitComp);
         }
         return $items;
     }
     return false;
 }
开发者ID:namibia,项目名称:CBP-Joomla-3-Component,代码行数:35,代码来源:createaccount.php


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