當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。