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


PHP StringUtils::AddStr方法代碼示例

本文整理匯總了PHP中StringUtils::AddStr方法的典型用法代碼示例。如果您正苦於以下問題:PHP StringUtils::AddStr方法的具體用法?PHP StringUtils::AddStr怎麽用?PHP StringUtils::AddStr使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在StringUtils的用法示例。


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

示例1: Render

 public function Render()
 {
     include_once 'libs/smartylibs/Smarty.class.php';
     $smarty = new Smarty();
     $smarty->template_dir = 'components/templates';
     $smarty->assign_by_ref('Page', $this);
     $users = $this->tableBasedGrantsManager->GetAllUsersAsJson();
     $smarty->assign_by_ref('Users', $users);
     $localizerCaptions = $this->GetLocalizerCaptions();
     $smarty->assign_by_ref('Captions', $localizerCaptions);
     /* $roles = $this->tableBasedGrantsManager->GetAllRolesAsJson();
        $smarty->assign_by_ref('Roles', $roles); */
     $headerString = 'Content-Type: text/html';
     if ($this->GetContentEncoding() != null) {
         StringUtils::AddStr($headerString, 'charset=' . $this->GetContentEncoding(), ';');
     }
     header($headerString);
     $pageInfos = GetPageInfos();
     $pageListViewData = array('Pages' => array(), 'CurrentPageOptions' => array());
     foreach ($pageInfos as $pageInfo) {
         $pageListViewData['Pages'][] = array('Caption' => $this->RenderText($pageInfo['caption']), 'Hint' => $this->RenderText($pageInfo['short_caption']), 'Href' => $pageInfo['filename'], 'GroupName' => $this->RenderText($pageInfo['group_name']), 'BeginNewGroup' => $pageInfo['add_separator']);
     }
     $pageGroups = GetPageGroups();
     foreach ($pageGroups as &$pageGroup) {
         $pageGroup = $this->RenderText($pageGroup);
     }
     $pageListViewData['Groups'] = $pageGroups;
     $smarty->assign_by_ref('PageList', $pageListViewData);
     $authenticationViewData = $this->GetAuthenticationViewData();
     $smarty->assign_by_ref('Authentication', $authenticationViewData);
     $smarty->display('admin_panel.tpl');
 }
開發者ID:BCDevExchange,項目名稱:WORKPLAN,代碼行數:32,代碼來源:phpgen_admin.php

示例2: GetLink

 public function GetLink()
 {
     $parameterList = '';
     foreach ($this->parameters as $name => $value) {
         StringUtils::AddStr($parameterList, urlencode($name) . '=' . urlencode($value), '&');
     }
     return $this->targetPage . ($parameterList != '' ? '?' : '') . $parameterList;
 }
開發者ID:martinw0102,項目名稱:ProjetSyst,代碼行數:8,代碼來源:link_builder.php

示例3: GetStyleString

 public function GetStyleString()
 {
     $result = '';
     foreach ($this->styles as $paramName => $paramValue) {
         StringUtils::AddStr($result, "{$paramName}: {$paramValue};", ' ');
     }
     foreach ($this->styleStrings as $styleString) {
         if (!StringUtils::IsNullOrEmpty($styleString) && !StringUtils::EndsBy($styleString, ';')) {
             $styleString .= ';';
         }
         StringUtils::AddStr($result, $styleString, ' ');
     }
     return $result;
 }
開發者ID:martinw0102,項目名稱:ProjetSyst,代碼行數:14,代碼來源:html_utils.php

示例4: GetGridClasses

 private function GetGridClasses()
 {
     $result = '';
     StringUtils::AddStr($result, 'stripped', ' ');
     if ($this->GetHighlightRowAtHover()) {
         StringUtils::AddStr($result, 'row-hover-highlight', ' ');
     }
     if ($this->GetUseFixedHeader()) {
         StringUtils::AddStr($result, 'fixed-header', ' ');
     }
     return $result;
 }
開發者ID:howareyoucolin,項目名稱:demo,代碼行數:12,代碼來源:grid.php

示例5: GetFieldListAsSQL

 private function GetFieldListAsSQL()
 {
     $result = '';
     foreach ($this->fieldAggregations as $fieldName => $aggregationInfo) {
         if (!$aggregationInfo->HasAlias()) {
             StringUtils::AddStr($result, $aggregationInfo->GetAggregate()->AsSQL($this->engCommandImp->QuoteIdentifier($fieldName)), ', ');
         } else {
             StringUtils::AddStr($result, $this->engCommandImp->GetAliasedAsFieldExpression($aggregationInfo->GetAggregate()->AsSQL($this->engCommandImp->QuoteIdentifier($fieldName)), $this->engCommandImp->QuoteIdentifier($aggregationInfo->GetAlias())), ', ');
         }
     }
     return $result;
 }
開發者ID:outsourcinggithub,項目名稱:outsourcing,代碼行數:12,代碼來源:select_command.php

示例6: AddStr

 private function AddStr($string, $delimiter = '')
 {
     StringUtils::AddStr($this->result, $string, $delimiter);
 }
開發者ID:outsourcinggithub,項目名稱:outsourcing,代碼行數:4,代碼來源:xml_writer.php

示例7: GetInputAttributes

 /**
  * @return string
  */
 public function GetInputAttributes($suppressRequiredValidation = false)
 {
     $result = '';
     $validationAttr = '';
     foreach ($this->list as $validator) {
         if ($suppressRequiredValidation && SMReflection::ClassName($validator) == 'RequiredValidator') {
             continue;
         }
         StringUtils::AddStr($validationAttr, $validator->GetValidatorName(), ' ');
         StringUtils::AddStr($result, $validator->GetAdditionalAttributes(), ' ');
     }
     if (!StringUtils::IsNullOrEmpty($validationAttr)) {
         StringUtils::AddStr($result, StringUtils::Format('data-validation="%s"', $validationAttr), ' ');
     }
     return $result;
 }
開發者ID:howareyoucolin,項目名稱:demo,代碼行數:19,代碼來源:validators.php

示例8: GetGridColumnClass

 public function GetGridColumnClass()
 {
     $result = parent::GetGridColumnClass() ? parent::GetGridColumnClass() : parent::GetGridColumnClass();
     if ($this->GetGrid()->GetShowKeyColumnsImagesInHeader()) {
         if ($this->dataset->IsFieldPrimaryKey($this->fieldName)) {
             StringUtils::AddStr($result, 'primary-key', ' ');
         }
         if ($this->dataset->IsLookupField($this->fieldName)) {
             if ($this->dataset->IsLookupFieldNameByDisplayFieldName($this->fieldName)) {
                 if ($this->dataset->IsFieldPrimaryKey($this->dataset->IsLookupFieldNameByDisplayFieldName($this->fieldName))) {
                     StringUtils::AddStr($result, 'primary-key', ' ');
                 }
             }
             StringUtils::AddStr($result, 'foreign-key', ' ');
         }
     }
     if ($this->ShowOrderingControl()) {
         StringUtils::AddStr($result, 'sortable', ' ');
     }
     StringUtils::AddStr($result, $this->GetSortOrderColumnClass(), ' ');
     return $result;
 }
開發者ID:martinw0102,項目名稱:ProjetSyst,代碼行數:22,代碼來源:columns.php


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